Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace WaitUntilEvent

Index

Functions

Functions

  • fire<T>(emitter: Emitter<T>, event: Omit<T, "waitUntil">, timeout?: undefined | number): Promise<void>
  • Fire all listeners in the same tick.

    Use AsyncEmitter.fire to fire listeners async one after another.

    Type Parameters

    Parameters

    • emitter: Emitter<T>
    • event: Omit<T, "waitUntil">
    • timeout: undefined | number = undefined

    Returns Promise<void>