Class AsyncEmitter<T>

Type Parameters

Hierarchy (view full)

Constructors

Properties

_callbacks: undefined | CallbackList
deliveryQueue: undefined | Promise<void>

Accessors

Methods

  • Parameters

    • listeners: Callback[]
    • event: WaitUntilData<T>
    • token: CancellationToken
    • Optional promiseJoin: ((p, listener) => Promise<any>)
        • (p, listener): Promise<any>
        • Parameters

          • p: Promise<any>
          • listener: Function

          Returns Promise<any>

    Returns Promise<void>

  • Fire listeners async one after another.

    Parameters

    • event: WaitUntilData<T>
    • token: CancellationToken = CancellationToken.None
    • Optional promiseJoin: ((p, listener) => Promise<any>)
        • (p, listener): Promise<any>
        • Parameters

          • p: Promise<any>
          • listener: Function

          Returns Promise<any>

    Returns Promise<void>