Subscribe to an event type.
The type of event to listen for
Callback function to invoke when event occurs
Unsubscribe function
Subscribe to an event type once (auto-unsubscribes after first call).
The type of event to listen for
Callback function to invoke when event occurs
Unsubscribe function
Emit an event to all subscribers.
The event to emit
Remove all listeners for a specific event type.
The event type to clear listeners for
Get the number of listeners for an event type.
The event type to count listeners for
Number of active listeners
Event emitter interface for storage adapters.
Provides a simple pub/sub mechanism for monitoring adapter lifecycle and query execution.
Example