Module aws_smithy_async::rt::sleep
source · 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§
- Wrapper type for sharable
AsyncSleep
- Future returned by
AsyncSleep
. - TokioSleep
rt-tokio
Implementation ofAsyncSleep
for Tokio.
Traits§
- Async trait with a
sleep
function.
Functions§
- default_async_sleep
rt-tokio
Returns a default sleep implementation based on the features enabled