• Wait for multiple events to occur (Promise.all pattern)

    Type Parameters

    • T = ApiCallback<string>

    Parameters

    • eventTypes: string[]

      Array of event types to wait for

    • Optional timeout: number

      Optional timeout in milliseconds

    Returns Promise<T[]>

    Promise that resolves when all events have occurred