Skip to content

IEvent.unsubscribe

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions
API / IEvent<TSubject, TEventArgs> / unsubscribe method

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

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

Source reference: src/events/IEvent.ts:19.

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