Skip to main content

Module task_scheduler

Module task_scheduler 

Source
Expand description

Task scheduler for the async host runtime.

Manages spawned async tasks: stores their callables, tracks completion, and executes them (synchronously for now) when the VM suspends on an await.

The initial design runs tasks inline (synchronous execution at await-time). True concurrent execution via Tokio can be layered on later by changing resolve_task to spawn on the Tokio runtime.

Structs§

TaskScheduler
Scheduler that tracks spawned async tasks by their future ID.

Enums§

TaskStatus
Completion status of a spawned task.