UNPKG

@rimbu/stream

Version:

Efficient structure representing a sequence of elements, with powerful operations for TypeScript

24 lines 868 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.closeIters = closeIters; var tslib_1 = require("tslib"); function closeIters() { var iters = []; for (var _i = 0; _i < arguments.length; _i++) { iters[_i] = arguments[_i]; } return tslib_1.__awaiter(this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, Promise.all(iters.map(function (i) { var _a; (_a = i === null || i === void 0 ? void 0 : i.return) === null || _a === void 0 ? void 0 : _a.call(i); }))]; case 1: _a.sent(); return [2 /*return*/]; } }); }); } //# sourceMappingURL=utils.cjs.map