• Uses generator function to be asynchronously called until completed (or canceled by canceling the promise).

    Parameters

    • fn: any

      Generator function to be called

    Returns Promise<unknown>

    Method

    asyncGenerator