Binds a given listener to a certain event
Default: 0, the lower the number, the earlier the execution. May be a negative value!
Emits a given event which has the option to pass additional arguments.
Hooks are quite similar to events and share the same namespace with them. They however have one distinct difference when it comes to their handling. Events are called async, you emit an event and go on. A hook however waits for the registered listeners to finish and allows them to process the given arguments. All listeners are executed in sequence, even if they are async and return a promise object.
Therefore this method will always return a promise object you have to wait for.
Returns the instance of the internal event emitter
Removes a given listener from a certain event
Unbinds either all listeners of a single event, or all listeners for all events
Generated using TypeDoc
This class is used for all helferlein events to prevent contamination of the global event system