Crate ic_cdk_timers
source ·Expand description
The library implements multiple and periodic timers on the Internet Computer.
Example
ic_cdk_timers::set_timer(Duration::from_secs(1), || ic_cdk::println!("Hello from the future!"));
Structs
- Type returned by the
set_timer
andset_timer_interval
functions. Pass toclear_timer
to remove the timer.
Functions
- Cancels an existing timer. Does nothing if the timer has already been canceled.