Expand description
A priority-aware native async runtime for the smol ecosystem.
Runtime uses an async-task based scheduler with per-worker queues,
global priority injectors, work stealing, and parking workers. LocalDomain
uses async-executor and is driven explicitly by its host thread, allowing
it to run !Send futures. Neither runtime owns or drives an I/O reactor.
Enable the stats feature to inspect an approximate [RuntimeStats]
snapshot of routing, stealing, parking, wake, and queue counters.
Structs§
- Fallible
Task - A task handle that resolves to
Noneif the task is cancelled. - Local
Domain - A thread-affine executor driven explicitly by the thread that creates it.
- Local
Spawner - A capability for submitting
Sendwork to a particularLocalDomain. - Priority
Weights - Relative scheduling opportunities assigned to each priority.
- RunStats
- Statistics from a time-budgeted
LocalDomaindrive. - Runtime
- Runtime
Builder - Spawner
- Task
- An awaitable task handle. Dropping it cancels the task.
Enums§
- Priority
- Scheduling priority for tasks in the general worker pool.
- Shutdown
Error - An error raised while shutting down a general runtime.
- Shutdown
Outcome - The result of a shutdown operation with a deadline.
- Spawn
Error - An error returned when a task cannot be accepted.