Skip to main content

spawn_guarded

Function spawn_guarded 

Source
pub fn spawn_guarded<F>(fut: F) -> AbortOnDrop
where F: Future<Output = ()> + Send + 'static,
Expand description

tokio::spawn a relay, wrapped in an AbortOnDrop so the parent owns it.