Skip to main content

drain

Function drain 

Source
pub fn drain() -> Vec<LeniencyEvent>
Expand description

Drain all accumulated events and deactivate the collector.

Returns the events collected since the last activate, then resets the buffer. Calling drain without a prior activate returns an empty Vec.