• Wait for a promise to resolve.

    Parameters

    Returns Generator<any, void, unknown>

    Generator function

    Example

    function *myCoroutineFunction() {
    yield* WaitForPromise(fetch("https://jsonplaceholder.typicode.com/todos/1"));
    }

Generated using TypeDoc