Skip to main content

Module tasks

Module tasks 

Source

Structs§

NamedTask
A named wrapper around a tokio JoinHandle, used to track which long-running task completed (or failed) first.
ShutdownBudget
How long a process may spend shutting down, split into the two phases a Supervisor runs.
Supervisor
Runs an app’s long-lived tasks and owns their shutdown.

Functions§

wait_for_first_error
Wait for the first task to complete and convert the outcome into a single Result.
wait_for_first_task
Wait for the first task in the set to complete and return its name alongside the join result.