pub async fn run_gated<F, R>( gate: &Arc<DebugGate>, section: &'static str, f: F, ) -> Option<R>where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Same as run, but f first passes through section on gate — a no-op outside test builds (see debug_gate).
run
f
section
gate
debug_gate