35 releases (1 stable)
Uses new Rust 2024
| 1.0.0 | Nov 13, 2025 |
|---|---|
| 0.12.3 | Nov 14, 2025 |
| 0.12.2 | Jun 25, 2025 |
| 0.12.0-alpha.2 | Mar 19, 2025 |
| 0.2.0-beta.0 | Feb 3, 2023 |
#17 in #dfinity
51,366 downloads per month
Used in 49 crates
(26 directly)
115KB
2K
SLoC
Rust CDK Timers Library
This crate provides a library to schedule multiple and periodic tasks on the Internet Computer.
Example
In Cargo.toml:
[dependencies]
ic-cdk-timers = "1.0.0"
To schedule a one-shot task to be executed 1s later:
ic_cdk_timers::set_timer(Duration::from_secs(1), async { ic_cdk::println!("Hello from the future!") });
References
- Internet Computer Developer Guide: Periodic Tasks and Timers
- Example: Periodic Tasks and Timers (compares timers and heartbeats).
Dependencies
~350KB