Skip to content

EventDispatcher.unsubscribe

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions

Unsubscribes the given eventHandler to the event. The exact same object that was used to subscribe to the event must be passed as well.

public unsubscribe<TEventHandler extends IEventHandler<TSubject, TEventArgs>>(
  eventHandler: TEventHandler
): void

Source reference: src/events/EventDispatcher.ts:29.

Generic Parameters

  • TEventHandler

    Type constraints: IEventHandler<TSubject, TEventArgs>.

Parameters

  • eventHandler: TEventHandler
    The event handler that was previously subscribed to the event.
Clone this wiki locally