EventDispatcherBase
abstract class EventDispatcherBaseTValueTHandler extends EventHandlerTValue = EventHandlerTValue
A base for dispatching Subscribable
s.
Type Parameters
TValue
The type of the argument passed to subscribers.
THandler extends EventHandlerTValue = EventHandlerTValue
The type of the callback function.
Extended by
Constructors
constructor
public new EventDispatcherBaseTValueTHandler extends EventHandlerTValueTHandler = EventHandlerTValue(): EventDispatcherBaseTValueTHandler
Type Parameters
Properties
subscribable
readonly public subscribable: SubscribableTValueTHandler = ...
Methods
clear
public clear(): void
Unsubscribe all subscribers from the event.
subscribe
Subscribe to the event.
Parameters
unsubscribe
Unsubscribe from the event.