Skip to main content

reset_and_snapshot_break_stats

Function reset_and_snapshot_break_stats 

Source
async fn reset_and_snapshot_break_stats(scheduler: &Scheduler) -> BreakStats
Expand description

Atomically replace the scheduler’s in-session counters with their default and return the snapshot the emit should ship. Extracted as a separate helper so the lock-then-snapshot ordering can be tested against a real concurrent writer.