Skip to main content

park

Function park 

Source
pub fn park(ctx: &ServiceContext) -> !
Expand description

Sleep forever, having nothing left to do.

For a service whose work is finished but whose death would be noise - it holds its slot and its capabilities and consumes no CPU. A service that should be gone should exit instead.