• Wait for a number of seconds to pass.

    Parameters

    • seconds: number
    • context: null | Context = null

    Returns Generator<undefined, void, unknown>

    Generator function

    function *myCoroutineFunction() {
    yield* WaitForSeconds(1);
    }