Expand description
Provides an AsyncSleep trait that returns a future that sleeps for a given duration,
and implementations of AsyncSleep for different async runtimes.
Structs§
- Shared
Async Sleep - Wrapper type for sharable
AsyncSleep - Sleep
- Future returned by
AsyncSleep. - Tokio
Sleep - Implementation of
AsyncSleepfor Tokio.
Traits§
- Async
Sleep - Async trait with a
sleepfunction.
Functions§
- default_
async_ sleep - Returns a default sleep implementation based on the features enabled