[][src]Crate async_timer

Async timer lib

Timers

Primitives

  • Timed - A wrapper over future that allows to limit time for the future to resolve.
  • Interval - Periodic timer, that on each completition returns itself to poll once again with the same interval.

Features

  • tokio_on - Enables implementations that require platform's event loop

Re-exports

pub use oneshot::Oneshot;

Modules

oneshot

One-shot Timer

Structs

Expired

Error when Timed expires

Interval

Periodic Timer

Enums

Timed

Limiter on time to wait for underlying Future

Functions

interval

Creates interval with default Platform timer.

timed

Run future in timed fashion using default Platform timer.