supervisable

Function supervisable 

Source
pub fn supervisable<T>(worker: T) -> ChildBuilder<'static, Restartable>
where T: Supervisable + 'static,
Expand description

Creates a builder for a supervisable child task on the ambient supervisor.

The ambient counterpart to SupervisorHandle::supervisable, which documents what a supervisable task is.

ยงPanics

ChildBuilder::spawn panics if there is no ambient supervisor. See spawn.