Skip to main content

run_gated

Function run_gated 

Source
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,
Expand description

Same as run, but f first passes through section on gate — a no-op outside test builds (see debug_gate).