Function requestAnimationFrameOnce

  • Request the given callback to be called exactly once in the next animation frame.

    Parameters

    • callback: (() => void)
        • (): void
        • Returns void

    Returns void