Function animationFrame

  • Resolves after the next animation frame if no parameter is given, or after the given number of animation frames.

    Parameters

    • n: number = 1

    Returns Promise<void>