Module timer

Source
Expand description

Interact with the timer runtime module.

The timer:distro:sys module is public, so no special capabilities needed.

Enums§

TimerAction
The Request::body() field for requests to timer:distro:sys, a runtime module that allows processes to set timers with a duration specified in milliseconds.

Functions§

set_and_await_timer
Set a timer using the runtime that will return a crate::Response after the specified duration, then wait for that timer to resolve. The duration should be a number of milliseconds.
set_timer
Set a timer using the runtime that will return a crate::Response after the specified duration. The duration should be a number of milliseconds.