Function wasm_rs_async_executor::single_threaded::block_on[][src]

pub fn block_on<F, R>(fut: F) -> Option<R> where
    F: Future<Output = R>, 

Run tasks until completion of a future

Important

This function WILL NOT allow yielding to the environment that cooperative feature allows, and it will run the executor until the given future is ready. If yielding is expected, this will block forever.