pub fn block_on_with_spawn<F: Future>(future: F) -> F::OutputExpand description
Drive future to completion, with spawn available inside the context.
Like block_on but registers the executor as the thread-local so that
spawn() works within the future’s async context.