[][src]Module actix_rt::time

Utilities for tracking time.

Structs

Delay

Future returned by delay_until and delay_for.

Instant

A measurement of the system clock, useful for talking to external entities like the file system or other processes.

Interval

Stream returned by interval and interval_at.

Timeout

Future returned by timeout and timeout_at.

Functions

delay_for

Waits until duration has elapsed.

delay_until

Waits until deadline is reached.

interval

Creates new Interval that yields with interval of duration. The first tick completes immediately.

interval_at

Creates new Interval that yields with interval of period with the first tick completing at at.

timeout

Require a Future to complete before the specified duration has elapsed.