Emits an event to all currently subscribed listeners.
the event to emit.
any arguments required for the event.
Stops listening to an event.
the event to stop listening to.
the function to remove from the listener array.
Starts listening to an event.
the event to listen to.
function to be called when an this event is emitted.
optional order to insert this hook with.
Listens to a single occurrence of an event.
the event to listen to.
function to be called when an this event is emitted.
optional order to insert this hook with.
Generated using TypeDoc
Event emitter which allows listeners to return a value.
This is beneficial for the themes since it allows plugins to modify the HTML output without doing unsafe text replacement.
This class is functionally nearly identical to the {@link EventEmitter} class with two exceptions.
await
s return values from its listeners, it does not return them to the emitter.R
is specified as to be a promise or other deferred type.