Invokes all handlers, providing the given event.
Handlers may add/remove callbacks or do a nested dispatch.
If a handler is added within a handler, the new handler will not be invoked until the next dispatch.
Adds an event handler that will be invoked upon signal dispatch.
The handler to invoke on signal dispatch.
Optionaloptions: SignalOptionsOptions for changing listening behavior.
Unsubscribe - Returns a method where, when invoked, will remove the handler. If the handler has already been removed, Unsubscribe will do nothing.
An object that may dispatch one type of event and have handlers for that event.