Module ic_cdk::timer

source ·
Expand description

Provides simple timer functionality for executing a function in the future.

Structs

Type returned by the set_timer and set_timer_interval functions. Pass to clear_timer to remove the timer.

Functions

Cancels an existing timer. Does nothing if the timer has already been canceled.
Sets func to be executed later, after delay. Panics if delay + time() is more than u64::MAX nanoseconds.
Sets func to be executed every interval. Panics if interval + time() is more than u64::MAX nanoseconds.