Expand description
Async utility functions.
Retry/backoff belongs to crate::retry::RetryPolicy (with the HTTP
wrappers in crate::http); do not add a local retry loop here.
retry_with_backoff is kept only as a deprecated compatibility shim for
downstream users of the published crate.
Constants§
Functions§
- join_
all_ with_ timeout - Run multiple futures and wait for all with a timeout
- read_
exact_ uninit - Read exactly
lenbytes from an async reader without zero-initializing the buffer first. - retry_
with_ backoff Deprecated - Retry an operation with exponential backoff.
- sleep_
with_ context - Sleep with context
- with_
default_ timeout - Execute a future with the default timeout
- with_
long_ timeout - Execute a future with a long timeout
- with_
short_ timeout - Execute a future with a short timeout
- with_
timeout - Execute a future with a timeout and context