[][src]Crate tokio_timer

Utilities for tracking time.

This crate provides a number of utilities for working with periods of time:

These three types are backed by a Timer instance. In order for Delay, Interval, and Timeout to function, the associated Timer instance must be running on some thread.

Re-exports

pub use self::timer::Timer;

Modules

clock

A configurable source of time.

delay_queue

A queue of delayed elements.

throttle

Slow down a stream by enforcing a delay between items.

timeout

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

timer

Timer implementation.

Structs

Delay

A future that completes at a specified instant in time.

DelayQueue

A queue of delayed elements.

Error

Errors encountered by the timer implementation.

Interval

A stream representing notifications at fixed interval

Timeout

Allows a Future or Stream to execute for a limited amount of time.

Functions

sleep

Create a Future that completes in duration from now.

with_default

Set the default timer for the duration of the closure.