Module tokio_util::sync[][src]

Expand description

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