Module tokio_util::sync
source ยท Expand description
Synchronization primitives
Modulesยง
- cancellation_
token ๐An asynchronously awaitableCancellationToken
. The token allows to signal a cancellation request to one or more tasks. - mpsc ๐
- poll_
semaphore ๐ - reusable_
box ๐
Structsยง
- A token which can be used to signal a cancellation request to one or more tasks.
- A wrapper for cancellation token which automatically cancels it on drop. It is created using
drop_guard
method on theCancellationToken
. - A wrapper around
Semaphore
that provides apoll_acquire
method. - Error returned by the
PollSender
when the channel is closed. - A wrapper around
mpsc::Sender
that can be polled. - A reusable
Pin<Box<dyn Future<Output = T> + Send + 'a>>
. - A Future that is resolved once the corresponding
CancellationToken
is cancelled. - A Future that is resolved once the corresponding
CancellationToken
is cancelled.