Module tokio_util::sync 
source · Expand description
Synchronization primitives
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 usingdrop_guardmethod on theCancellationToken.
- A wrapper aroundSemaphorethat provides apoll_acquiremethod.
- Error returned by thePollSenderwhen the channel is closed.
- A wrapper aroundmpsc::Senderthat can be polled.
- A reusablePin<Box<dyn Future<Output = T> + Send + 'a>>.
- A Future that is resolved once the correspondingCancellationTokenis cancelled.
- A Future that is resolved once the correspondingCancellationTokenis cancelled.