OptionalthisArg: unknownReadonly[toPrivategeneratorPrivate OptionalpromiseAttaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Optionalonfinally: null | (() => void)The callback to execute when the Promise is settled (fulfilled or rejected).
A Promise for the completion of the callback.
PrivategetPrivateget
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.