pub fn block_on_with_spawn<F: Future>(future: F) -> F::Output
Drive future to completion with spawn() available in the async context.
future
spawn()
Single-threaded mode (1 worker). Use block_on_multi for multi-thread.
block_on_multi