Skip to content

EventDispatcher.dispatch

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions

Dispatches a notification to all subscribers.

public dispatch(
  subject: TSubject,
  args: TEventArgs
): void

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

Parameters

  • subject: TSubject
    The object raising the event, generally the object which is exposing it.

  • args: TEventArgs
    A set of arguments that provide context for the event.

Clone this wiki locally