Remove all listeners and clean up
Emit an operation event to all registered listeners
The entity that triggered the operation
The operation type
Whether the operation succeeded
Optionaldata: anyOptional data returned from the operation
Optionalerror: anyOptional error if operation failed
Subscribe to all operation events
The callback function to register
Unsubscribe function
Get the number of active listeners