Optional
thisArg: unknownReadonly
[toPrivate
generatorPrivate
Optional
promisePrivate
getPrivate
getOptional
onfulfilled: null | ((value) => TResult1 | PromiseLike<TResult1>)Optional
onrejected: null | ((reason) => TResult2 | PromiseLike<TResult2>)
A class that wraps an AsyncGenerator and makes it both iterable and awaitable as a Promise. When used as a Promise, it will resolve to an array containing all generated values. When used as an AsyncGenerator, it behaves like the original generator.