tokio::time

Module timeout

Source
Expand description

Allows a future to execute for a maximum amount of time.

See Timeout documentation for more details.

Structs§

Functions§

  • Requires a Future to complete before the specified duration has elapsed.
  • Requires a Future to complete before the specified instant in time.