Expand description
Utilities for tracking time (Tokio re-exports).
Structs§
- A measurement of a monotonically nondecreasing clock. Opaque and useful only with
Duration. - Interval returned by
intervalandinterval_at. - Future returned by
sleepandsleep_until. - Future returned by
timeoutandtimeout_at.
Functions§
- Creates new
Intervalthat yields with interval ofperiod. The first tick completes immediately. The defaultMissedTickBehaviorisBurst, but this can be configured by callingset_missed_tick_behavior. - Creates new
Intervalthat yields with interval ofperiodwith the first tick completing atstart. The defaultMissedTickBehaviorisBurst, but this can be configured by callingset_missed_tick_behavior. - Waits until
durationhas elapsed. - Waits until
deadlineis reached. - Requires a
Futureto complete before the specified duration has elapsed.