Function screeps_async::run

source ·
pub fn run() -> Result<(), RuntimeError>
Expand description

Run the task executor for one tick

This is just shorthand for:

screeps_async::with_runtime(|runtime| {
    runtime.run()
});

§Panics

This function panics if the current runtime is not set