Expand description
Synchronization primitives
Modulesยง
- cancellation_
token ๐ - An asynchronously awaitable 
CancellationToken. The token allows to signal a cancellation request to one or more tasks. - mpsc ๐
 - poll_
semaphore ๐ - reusable_
box ๐ 
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_guardmethod on theCancellationToken. - Drop
Guard Ref  - A wrapper for cancellation token which automatically cancels
it on drop. It is created using 
drop_guard_refmethod on theCancellationToken. - Poll
Semaphore  - A wrapper around 
Semaphorethat provides apoll_acquiremethod. - Poll
Send Error  - Error returned by the 
PollSenderwhen the channel is closed. - Poll
Sender  - A wrapper around 
mpsc::Senderthat 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 
CancellationTokenis cancelled. - Wait
ForCancellation Future Owned  - A Future that is resolved once the corresponding 
CancellationTokenis cancelled.