Crate bity_ic_canister_timer_jobs

Crate bity_ic_canister_timer_jobs 

Source
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§

timer_manager

Structs§

TimerJobs
A collection of timer-based jobs managed together.

Traits§

Job
Trait defining the behavior of a job that can be executed.