spawn_with_shutdown

Function spawn_with_shutdown 

Source
pub fn spawn_with_shutdown<F, R>(
    fun: F,
) -> impl Lifecycle<S = IntrospectableStop>
where F: FnOnce(ShutdownSignal) -> R + Send + 'static, R: Future<Output = ()> + Send,