1 2 3 4 5 6 7 8 9 10
//! The smol backend: tasks on smol's global executor, timers from `async-io`. use std::future::Future; pub(super) fn spawn_detached<F>(task: F) where F: Future<Output = ()> + Send + 'static, { smol::spawn(task).detach(); }