Expand description
Module for managing timer-based jobs in Internet Computer canisters.
This module provides functionality for scheduling and managing recurring jobs in Internet Computer canisters using the timer API. It supports job scheduling, cancellation, and monitoring of job execution.
§Example
use bity_ic_canister_timer_jobs::TimerJobs;
use std::time::Duration;
let mut jobs = TimerJobs::new();
jobs.schedule("my_job", Duration::from_secs(60), || {
println!("Job executed!");
});Modules§
Structs§
- Timer
Jobs - A collection of timer-based jobs managed together.
Traits§
- Job
- Trait defining the behavior of a job that can be executed.