Function with_runtime

Source
pub fn with_runtime<F, R>(f: F) -> R
where F: FnOnce(&ScreepsRuntime) -> R,
Expand description

Acquire a reference to the ScreepsRuntime.

ยงPanics

This function panics if the current runtime is not set