pub fn worker_with_shutdown<N, F, Fut>(name: N, f: F) -> ChildBuilder<'static>Expand description
Creates a builder for a child task of the current process, with a body that receives the shutdown signal.
The ambient counterpart to SupervisorHandle::worker_with_shutdown.
ยงPanics
ChildBuilder::spawn panics if it is called outside supervision. See spawn.