[go: up one dir, main page]

spawn

Function spawn 

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

spawn will use the global executor instance, which is determined by the cargo features, to spawn the given future.