std :: async::host
Function std::block_on
generic<F: Future, T> T block_on(&F fut)Run 'fut' to completion on this thread and return its value. Tasks it spawns (async_spawn) run meanwhile, on the same thread; any still running when 'fut' finishes are abandoned with the executor.