Skip to main content

nested_supervisor

Function nested_supervisor 

Source
pub fn nested_supervisor(
    supervisor: Supervisor,
) -> NestedSupervisorBuilder<'static>
Expand description

Creates a builder for a nested supervisor spawned into the current process.

The ambient counterpart to SupervisorHandle::nested_supervisor, which documents what the builder is for.

ยงPanics

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