1 unstable release
new 0.1.0 | Mar 14, 2025 |
---|
#1 in #subcanister
39KB
644 lines
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_dfinity_library::canister_timer_jobs::TimerJobs;
use std::time::Duration;
let mut jobs = TimerJobs::new();
jobs.schedule("my_job", Duration::from_secs(60), || {
println!("Job executed!");
});
Dependencies
~8–17MB
~222K SLoC