If set to true, the callbacks will receive the arguments as function arguments, instead of a single event object
If true the emitter will emit the event as callback and not using the event object
The list of events that are registered in this emitter
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.
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
Constructor