Optional
options: { Optional
runtimeGets the current lock status of the EventManager
Registers a global event listener that handles all events. Global listeners are mixed with specific listeners and ordered by priority.
The callback function to handle events
Configuration options for the listener
Registers an event listener for specific event(s). Listeners are ordered by priority and executed in ascending order.
The event definition(s) to listen for
The callback function to handle the event
Configuration options for the listener
Emits an event to all registered listeners for that event type. Listeners are processed in order of priority and can stop event propagation.
Executes a hook with all registered hook interceptors applied This method should be used by TaskRunner when executing hooks
The hook to execute
The event that triggered the hook
The computed dependencies for the hook
Promise resolving to the hook execution result
Checks if there are any listeners registered for the given event
true if listeners exist, false otherwise
Adds an interceptor for all event emissions Interceptors are executed in the order they are added, with the ability to modify, log, or prevent event emissions
The interceptor function to add
Adds an interceptor for hook execution Interceptors are executed in the order they are added, with the ability to modify, log, or prevent hook execution
The interceptor function to add
EventManager handles event emission, listener registration, and event processing. It supports both specific event listeners and global listeners that handle all events. Listeners are processed in order based on their priority.