Function cogo::go

source · []
pub fn go<F, T>(f: F) -> JoinHandle<T> where
    F: FnOnce() -> T + Send + 'static,
    T: Send + 'static, 
Expand description

spawn a new coroutine(use method spawn)