Skip to main content

Module time

Module time 

Source

Structs§

Duration
A Duration type to represent a span of time, typically used for system timeouts.
Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.
TimeoutError
Error returned when an async operation exceeds its deadline.

Functions§

sleep
Waits until duration has elapsed.
timeout
Await future with a deadline.