use tokio_futures::compat; /// Like `tokio::run`, but takes an `async` block pub fn run_async(future: F) where F: std::future::Future + Send + 'static, { ::run(compat::infallible_into_01(future)); } /// Like `tokio::spawn`, but takes an `async` block pub fn spawn_async(future: F) where F: std::future::Future + Send + 'static, { ::spawn(compat::infallible_into_01(future)); }