Simply takes a payload and passes it to all the listeners. Makes a copy of the listeners before calling dispatchUnsafe.
Simply takes a payload and passes it to all the listeners. Returns the results in an array that matches the indexes of the listeners.
Simply takes a payload and passes it to all the listeners.
While dispatching:
Improving safety:
Specifying trap will catch any errors and pass them along if trap is a function. A payload is used instead of arguments for easy typing.
Generated using TypeDoc
Simply takes a payload and passes it to all the listeners. Makes a copy of the listeners before calling dispatchUnsafe.