Timers
TODO: Write content for this page.
Set up one-shot and periodic timers in canisters. Cover the timer API for both Rust (ic_cdk_timers) and Motoko (Timer module). Explain migration from heartbeats to timers. Common patterns: periodic cleanup, scheduled data aggregation, timed state transitions. Include cycle cost implications.
- Portal: building-apps/integrations/periodic-tasks.mdx
- Examples: periodic_tasks (Rust)
- Rust CDK: https://docs.rs/ic-cdk/latest/ic_cdk/ (timers module)
- concepts/timers — how the global timer mechanism works
- guides/canister-management/lifecycle — timer setup during canister init
- reference/cycles-costs — timer execution costs