Function block_on

Source
pub fn block_on<F>(future: F) -> Result<F::Output, RuntimeError>
where F: Future + 'static,
Expand description

The main entrypoint for the async runtime. Runs a future to completion.

See ScreepsRuntime::block_on for details