Function delayNextTick

  • Delays the execution of the current code to the next tick of the event loop. Don't call this method directly in a tight loop to prevent too many promises from being created.

    Returns Promise<void>