chore: stabilize JoinSet and AbortHandle (#4920)

Closes #4535.

This leaves the ID-related APIs unstable.
This commit is contained in:
Noah Kennedy
2022-08-19 17:16:11 +00:00
committed by GitHub
parent de81985762
commit b67b8c1398
9 changed files with 92 additions and 56 deletions
-7
View File
@@ -416,7 +416,6 @@ where
/// * `None` if the `JoinMap` is empty.
///
/// [`tokio::select!`]: tokio::select
#[doc(alias = "join_one")]
pub async fn join_next(&mut self) -> Option<(K, Result<V, JoinError>)> {
let (res, id) = match self.tasks.join_next_with_id().await {
Some(Ok((id, output))) => (Ok(output), id),
@@ -430,12 +429,6 @@ where
Some((key, res))
}
#[doc(hidden)]
#[deprecated(since = "0.7.4", note = "renamed to `JoinMap::join_next`.")]
pub async fn join_one(&mut self) -> Option<(K, Result<V, JoinError>)> {
self.join_next().await
}
/// Aborts all tasks and waits for them to finish shutting down.
///
/// Calling this method is equivalent to calling [`abort_all`] and then calling [`join_next`] in