pub fn spawn<F: Future<Output = R> + 'static, R: 'static>(f: F) -> JoinHandle<R> ⓘExpand description
Equivalent to tokio::task::spawn, but does not require the future to be Send. Must only be
used on a RuntimeFlavor::CurrentThread executor, though this is only checked when running with
debug assertions.