Files
tokio/tokio-util/src/sync/mod.rs
T

21 lines
509 B
Rust
Raw Normal View History

//! Synchronization primitives
mod cancellation_token;
pub use cancellation_token::{
guard::DropGuard, guard_ref::DropGuardRef, CancellationToken, WaitForCancellationFuture,
WaitForCancellationFutureOwned,
};
pub(crate) use cancellation_token::{RunUntilCancelledFuture, RunUntilCancelledFutureOwned};
2021-03-04 17:29:30 +01:00
mod mpsc;
pub use mpsc::{PollSendError, PollSender};
2021-03-04 17:29:30 +01:00
2021-01-20 09:53:31 +01:00
mod poll_semaphore;
pub use poll_semaphore::PollSemaphore;
2021-01-30 00:03:01 +01:00
mod reusable_box;
pub use reusable_box::ReusableBoxFuture;
2025-11-06 13:20:08 +02:00
#[cfg(test)]
mod tests;