Function script::script_thread::with_optional_script_thread

source ยท
fn with_optional_script_thread<R>(
    f: impl FnOnce(Option<&ScriptThread>) -> R,
) -> R