std1.0.0-beta-7 SafeC docs

std :: async::host

Function std::block_on

#include <std/async/host.h> source

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.