• Waits for a set number of ticks to pass.

    Parameters

    • Optionalticks: number

      The number of ticks to wait. Defaults to 1.

    Returns Promise<void>

    A promise that resolves when the specified number of ticks have passed.