Function spawn

Source
pub fn spawn<F, T>(
    scheduler: Scheduler,
    param: impl IntoSchedParam,
    f: F,
) -> JoinHandle<T>
where F: FnOnce() -> T + Send + 'static, T: Send + 'static,