mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
task: stabilise JoinMap (#7075)
This commit is contained in:
+17
-12
@@ -1,16 +1,21 @@
|
||||
//! Extra utilities for spawning tasks
|
||||
//!
|
||||
//! This module is only available when the `rt` feature is enabled. Note that enabling the
|
||||
//! `join-map` feature will automatically also enable the `rt` feature.
|
||||
|
||||
#[cfg(tokio_unstable)]
|
||||
cfg_rt! {
|
||||
mod spawn_pinned;
|
||||
pub use spawn_pinned::LocalPoolHandle;
|
||||
|
||||
pub mod task_tracker;
|
||||
pub use task_tracker::TaskTracker;
|
||||
|
||||
mod abort_on_drop;
|
||||
pub use abort_on_drop::AbortOnDropHandle;
|
||||
}
|
||||
|
||||
#[cfg(feature = "join-map")]
|
||||
mod join_map;
|
||||
mod spawn_pinned;
|
||||
pub use spawn_pinned::LocalPoolHandle;
|
||||
|
||||
#[cfg(tokio_unstable)]
|
||||
#[cfg_attr(docsrs, doc(cfg(all(tokio_unstable, feature = "rt"))))]
|
||||
#[cfg(feature = "join-map")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "join-map")))]
|
||||
pub use join_map::{JoinMap, JoinMapKeys};
|
||||
|
||||
pub mod task_tracker;
|
||||
pub use task_tracker::TaskTracker;
|
||||
|
||||
mod abort_on_drop;
|
||||
pub use abort_on_drop::AbortOnDropHandle;
|
||||
|
||||
Reference in New Issue
Block a user