clear method

void clear ()

Removes all events from events.

This can be used to avoid double-processing events.

Implementation

void clear() {
  _events.clear();
}