Skip to content

Commit eb9f646

Browse files
committed
feat: Stabalise JoinMap
1 parent 15f7366 commit eb9f646

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

tokio-util/src/task/join_map.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ use tokio::task::{AbortHandle, Id, JoinError, JoinSet, LocalSet};
2929
///
3030
/// When the `JoinMap` is dropped, all tasks in the `JoinMap` are immediately aborted.
3131
///
32-
/// **Note**: This type depends on Tokio's [unstable API][unstable]. See [the
33-
/// documentation on unstable features][unstable] for details on how to enable
34-
/// Tokio's unstable features.
35-
///
3632
/// # Examples
3733
///
3834
/// Spawn multiple tasks and wait for them:
@@ -96,11 +92,10 @@ use tokio::task::{AbortHandle, Id, JoinError, JoinSet, LocalSet};
9692
/// ```
9793
///
9894
/// [`JoinSet`]: tokio::task::JoinSet
99-
/// [unstable]: tokio#unstable-features
10095
/// [abort]: fn@Self::abort
10196
/// [abort_matching]: fn@Self::abort_matching
10297
/// [contains]: fn@Self::contains_key
103-
#[cfg_attr(docsrs, doc(cfg(all(feature = "rt", tokio_unstable))))]
98+
#[cfg_attr(docsrs, doc(cfg(feature = "rt")))]
10499
pub struct JoinMap<K, V, S = RandomState> {
105100
/// A map of the [`AbortHandle`]s of the tasks spawned on this `JoinMap`,
106101
/// indexed by their keys and task IDs.

tokio-util/src/task/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mod spawn_pinned;
66
pub use spawn_pinned::LocalPoolHandle;
77

88
#[cfg(tokio_unstable)]
9-
#[cfg_attr(docsrs, doc(cfg(all(tokio_unstable, feature = "rt"))))]
9+
#[cfg_attr(docsrs, doc(cfg(feature = "rt")))]
1010
pub use join_map::{JoinMap, JoinMapKeys};
1111

1212
pub mod task_tracker;

tokio-util/tests/task_join_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![allow(unknown_lints, unexpected_cfgs)]
22
#![warn(rust_2018_idioms)]
3-
#![cfg(all(feature = "rt", tokio_unstable))]
3+
#![cfg(feature = "rt")]
44

55
use tokio::sync::oneshot;
66
use tokio::time::Duration;

0 commit comments

Comments
 (0)