Skip to main content

EVENT_CHANNEL_CAPACITY

Constant EVENT_CHANNEL_CAPACITY 

Source
const EVENT_CHANNEL_CAPACITY: usize = 1024;
Expand description

Broadcast channel capacity. Generous relative to real fs-event volume (file-save bursts, not high-frequency streams) — a slow consumer would need to fall behind by this many raw events before RecvError::Lagged, at which point it should resync from scratch rather than assume it saw everything (same “wake signal, not a guaranteed delivery log” contract the existing three watchers already have via their own debounce logic).