Module actix_web::rt::time

Expand description

Utilities for tracking time (Tokio re-exports).

Structs§

Functions§

  • Creates new Interval that yields with interval of period. The first tick completes immediately. The default [MissedTickBehavior] is Burst, but this can be configured by calling set_missed_tick_behavior.
  • Creates new Interval that yields with interval of period with the first tick completing at start. The default [MissedTickBehavior] is Burst, but this can be configured by calling set_missed_tick_behavior.
  • Waits until duration has elapsed.
  • Waits until deadline is reached.
  • Requires a Future to complete before the specified duration has elapsed.