tokio_util/task/
mod.rs

1//! Extra utilities for spawning tasks
2//!
3//! This module is only available when the `rt` feature is enabled. Note that enabling the
4//! `join-map` feature will automatically also enable the `rt` feature.
5
6cfg_rt! {
7    mod spawn_pinned;
8    pub use spawn_pinned::LocalPoolHandle;
9
10    pub mod task_tracker;
11    #[doc(inline)]
12    pub use task_tracker::TaskTracker;
13
14    mod abort_on_drop;
15    pub use abort_on_drop::AbortOnDropHandle;
16
17    mod join_queue;
18    pub use join_queue::JoinQueue;
19}
20
21#[cfg(feature = "join-map")]
22mod join_map;
23#[cfg(feature = "join-map")]
24#[cfg_attr(docsrs, doc(cfg(feature = "join-map")))]
25pub use join_map::{JoinMap, JoinMapKeys};