Function whenNextEvent

  • Awaits for the next event.

    Utilizes [setImmediate] function when available (e.g. in Node.js). Falls back to [setTimeout] otherwise.

    Returns Promise<void>

    A promise resolved when the next event cycle starts.

Generated using TypeDoc