clear abstract method

void clear()

Clears all listeners, event groups, and subscriber tracking.

This resets the event system to its initial state. Use with caution, as it removes everything.

Example:

events.clear(); // Reset for testing or shutdown

Implementation

void clear();