pub fn spawn<F>(handle: &Handle, future: F) -> JoinHandle<F::Output>Expand description
在 Iris 运行时句柄上 spawn 一个异步任务。
需要传入 tokio::runtime::Handle,通常通过 crate::Context::handle 获取。
pub fn spawn<F>(handle: &Handle, future: F) -> JoinHandle<F::Output>在 Iris 运行时句柄上 spawn 一个异步任务。
需要传入 tokio::runtime::Handle,通常通过 crate::Context::handle 获取。