Function simple_life::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,