spawn_supervised

Function spawn_supervised 

Source
pub fn spawn_supervised<T, Fut>(
    name: impl Into<String>,
    restart_strategy: RestartStrategy,
    handler: T,
)
where T: Fn() -> Fut + Send + Sync + 'static, Fut: Future<Output = ()> + Send + Sync + 'static,