Skip to main content

spawn

Function spawn 

Source
pub fn spawn<F, T>(future: F) -> TaskHandle
where F: Future<Output = T> + Send + 'static, T: Send + 'static,
Expand description

生成异步任务的便捷函数