Skip to main content

ScheduleCallback

Type Alias ScheduleCallback 

Source
pub type ScheduleCallback = Arc<dyn Fn() -> BoxFuture<'static, ()> + Send + Sync>;
Expand description

The callback fired by a ScheduleDriver when a schedule entry triggers.

Mirrors the TS ScheduleEntry.callback: () => void | Promise<void>. The cron manager passes a closure that runs one job execution; the driver awaits it (and, for the default driver, reschedules the next cron fire afterwards).

Aliased Typeยง

pub struct ScheduleCallback { /* private fields */ }