Files
e-tib.com/node_modules/.pnpm/gensequence@8.0.8/node_modules/gensequence/dist/ImplAsyncSequence.js
Marc Mintel d14122005d Initial commit: E-TIB production hardening & E2E foundation
Former-commit-id: ef04fca3d76375630c05aac117bf586953f3b657
2026-04-28 19:11:38 +02:00

17 lines
514 B
JavaScript

import { reduceAsyncForAsyncIterator } from './operators/index.js';
export class ImplAsyncSequence {
i;
constructor(i) {
this.i = i;
}
get iter() {
return typeof this.i === 'function' ? this.i() : this.i;
}
[Symbol.asyncIterator]() {
return this.iter[Symbol.asyncIterator]();
}
reduceAsync(fnReduceAsync, initialValue) {
return reduceAsyncForAsyncIterator(fnReduceAsync, initialValue)(this.iter);
}
}
//# sourceMappingURL=ImplAsyncSequence.js.map