# tokio_util::sync - Rust
API documentation for the Rust `sync` mod in crate `tokio_util`.
Keywords: rust, rustlang, rust-lang, sync

# Module tokio_util::sync [−] [src]

Synchronization primitives

## Structs

CancellationToken | A token which can be used to signal a cancellation request to one or more tasks.
PollSemaphore | A wrapper around `Semaphore` that provides a `poll_acquire` method.
PollSender | A wrapper around `mpsc::Sender` that can be polled.
ReusableBoxFuture | A reusable `Pin<Box<dyn Future<Output = T> + Send>>`.
WaitForCancellationFuture | A Future that is resolved once the corresponding `CancellationToken` was cancelled