Expand description
Synchronization primitives
Structsยง
- Cancellation
Token - A token which can be used to signal a cancellation request to one or more tasks.
- Drop
Guard - A wrapper for cancellation token which automatically cancels
it on drop. It is created using
drop_guard
method on theCancellationToken
. - Poll
Semaphore - A wrapper around
Semaphore
that provides apoll_acquire
method. - Poll
Send Error - Error returned by the
PollSender
when the channel is closed. - Poll
Sender - A wrapper around
mpsc::Sender
that can be polled. - Reusable
BoxFuture - A reusable
Pin<Box<dyn Future<Output = T> + Send + 'a>>
. - Wait
ForCancellation Future - A Future that is resolved once the corresponding
CancellationToken
is cancelled. - Wait
ForCancellation Future Owned - A Future that is resolved once the corresponding
CancellationToken
is cancelled.