Skip to main content

Module task_scheduler

Module task_scheduler 

Source
Expand description

Background task scheduler for deferred and periodic work (#95).

Provides TaskScheduler which manages one-shot and recurring async tasks using tokio::spawn and tokio::time.

Structs§

TaskScheduler
A scheduler for one-shot and periodic background tasks.

Functions§

boxed_task
Convenience: schedule a one-shot closure that returns a boxed future.

Type Aliases§

TaskId
Unique identifier for a scheduled task.