• Will wait for a specific amount of frames to pass

    Parameters

    • frameCount: number

      The amount of frames to wait for

    • Optional context: Context

      The context to use, if not provided the current context will be used

    Returns Promise<void>

    a promise that resolves after a certain amount of frames

    Example

    await delayForFrames(10);
    

Generated using TypeDoc