ReplayEvent keeps a buffer of bufferSize events that are emitted for each new subscriber.

Type Parameters

  • Arg = void

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • Register an event handler

    Parameters

    Returns void

  • Invoke the event and notify handlers

    Parameters

    • arg: Arg

      Event args to pass to the handlers

    Returns void

  • Construct an object to serve as the publicApi of this event. This makes it so an event can be used as "pre-bound" function, and also prevents "invoke" from being called externally

    Returns PublicApi<Arg>

  • Unregister an event handler

    Parameters

    Returns void