Skip to main content

drain

Function drain 

Source
pub fn drain(max: usize) -> Vec<NetEvent>
Expand description

Drain up to max pending events (oldest first). Returns empty when the sink was never installed or nothing is queued.