Skip to main content

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 of the current process.

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

ยงPanics

ChildBuilder::spawn panics if it is called outside supervision. See spawn.