mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-17 00:00:11 +02:00
26 lines
662 B
Rust
26 lines
662 B
Rust
//! 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_rt! {
|
|
mod spawn_pinned;
|
|
pub use spawn_pinned::LocalPoolHandle;
|
|
|
|
pub mod task_tracker;
|
|
#[doc(inline)]
|
|
pub use task_tracker::TaskTracker;
|
|
|
|
mod abort_on_drop;
|
|
pub use abort_on_drop::AbortOnDropHandle;
|
|
|
|
mod join_queue;
|
|
pub use join_queue::JoinQueue;
|
|
}
|
|
|
|
#[cfg(feature = "join-map")]
|
|
mod join_map;
|
|
#[cfg(feature = "join-map")]
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "join-map")))]
|
|
pub use join_map::{JoinMap, JoinMapKeys};
|