pub fn spawn<F, R>(f: F) -> JoinHandle<R> ⓘwhere
F: Future<Output = R> + 'static,
R: 'static,
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.