consume

Return the events collected and reset the collector.

Return

the events collected.