Skip to main content

EventDispatcher

class EventDispatcherT extends EventDispatcherBaseT

Type Parameters

  • T

    The type of the value argument to subscribers.

Constructors

constructor

public new EventDispatcherT(): EventDispatcherT

Type Parameters

Inherited from EventDispatcherBase.constructor

Properties

subscribable

Inherited from EventDispatcherBase.subscribable

Methods

clear

public clear(): void

Unsubscribe all subscribers from the event.

Inherited from EventDispatcherBase.clear

dispatch

public dispatchvalue: T: void

Parameters


subscribe

public subscribehandler: EventHandlerT: () => void

Subscribe to the event.

Parameters

Inherited from EventDispatcherBase.subscribe

unsubscribe

public unsubscribehandler: EventHandlerT: void

Unsubscribe from the event.

Parameters

Inherited from EventDispatcherBase.unsubscribe