Function screeps_async::with_runtime
source · pub fn with_runtime<F, R>(f: F) -> Rwhere
F: FnOnce(&ScreepsRuntime) -> R,
Expand description
Acquire a reference to the ScreepsRuntime.
§Panics
This function panics if the current runtime is not set