Returns a Promise that is resolved the next time the named event is emitted on the emitter.

  • Type Parameters

    • E extends string
    • T extends Record<string, (...args: any[]) => void>
    • K extends string | number | symbol

    Parameters

    Returns Promise<Parameters<T[K]>>