1 2 3 4 5 6 7 8 9 10 11 12
use std::future::Future; use rong_rt::RongExecutor; use tokio::task::JoinHandle; pub(crate) fn spawn<F>(future: F) -> JoinHandle<F::Output> where F: Future + Send + 'static, F::Output: Send + 'static, { RongExecutor::global().spawn(future) }