You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
614 B
19 lines
614 B
"use strict"; |
|
Object.defineProperty(exports, "__esModule", { value: true }); |
|
const operators_1 = require("./operators"); |
|
class ImplAsyncSequence { |
|
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 operators_1.reduceAsyncForAsyncIterator(fnReduceAsync, initialValue)(this.iter); |
|
} |
|
} |
|
exports.ImplAsyncSequence = ImplAsyncSequence; |
|
//# sourceMappingURL=ImplAsyncSequence.js.map
|