UNPKG

ix

Version:

The Interactive Extensions for JavaScript

19 lines (17 loc) 808 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.switchAll = void 0; const _flatten_js_1 = require("./_flatten.js"); /** * Merges elements from all inner async-iterable sequences into a single async-iterable sequence, emitting values only from the most recently projected async-iterable sequence. * * @template TSource The type of the elements in the source sequences. * @returns {OperatorAsyncFunction<AsyncIterable<TSource>, TSource>} The async-iterable sequence that merges the elements of the inner sequences. */ function switchAll() { return function switchAllOperatorFunction(source) { return new _flatten_js_1.FlattenConcurrentAsyncIterable(source, (s) => s, 1, true); }; } exports.switchAll = switchAll; //# sourceMappingURL=switchall.js.map