Count of number of times this signal has been dispatched. This is incremented each time
dispatch
is called prior to invoking the handlers.
Invokes each handler function with the same parameters (including this
) with which it is
called. Handlers are invoked in the order in which they were added.
Invokes each handler function with the same parameters (including this
) with which it is
called. Handlers are invoked in the order in which they were added.
Add a handler function. If dispatch
is currently be called, then the new handler will be
called before dispatch
returns.
A function that unregisters the handler.
The handler function to add.
Add a handler function. If dispatch
is currently be called, then the new handler will be
called before dispatch
returns.
A function that unregisters the handler.
Remove a handler function. If dispatch
is currently be called and the new handler has not
yet been called, then it will not be called.
true
if the handler was present, false
otherwise.
Handler to remove.
Generated using TypeDoc
Simple specialization of Signal for the common case of a nullary handler signature.