Skip to main contentModule lifecycle
Source - Lifecycle
- Lifecycle controller for managing background tasks.
- ReadySignal
- Ready signal used by
start_with_ready* to flip Starting -> Running. - WithLifecycle
- Wrapper that implements
StatefulModule for any T: Runnable.
- LifecycleError
- Library-level error for lifecycle operations.
- Status
- Terminal/transition states for a background job.
- StopReason
- Reason why a task stopped.
- Runnable
- Trait for modules that can run a long-running task.
Note: take
self by Arc to make the spawned future 'static and Send.