pub fn spawn<F>(future: F) -> JoinHandle<F::Output> ⓘExpand description
Spawn a future onto the current thread’s executor.
Must be called from within a block_on_with_spawn or Runtime::block_on
context.
§Panics
Panics if called outside of an executor context.