• Wait for a number of frames to pass.

    Parameters

    • frames: number

    Returns Generator<undefined, void, unknown>

    Generator function

    function *myCoroutineFunction() {
    yield* WaitForFrames(10);
    }