Module glommio::timer[][src]

glommio::timer is a module that provides timing related primitives.

Structs

Timer

A timer that expires after a duration of time.

TimerActionOnce

The TimerActionOnce struct provides an ergonomic way to fire an action at a later point in time.

TimerActionRepeat

The TimerActionRepeat struct provides an ergonomic way to fire a repeated action at specified intervals, without having to fire new TimerActionOnce events

Functions

sleep

Sleep for some time.

timeout

Executes a future with a specified timeout