@reactivex/ix-es5-esm
Version:
The Interactive Extensions for JavaScript
15 lines (13 loc) • 699 B
JavaScript
import { FlattenConcurrentAsyncIterable } from './_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.
*/
export function switchAll() {
return function switchAllOperatorFunction(source) {
return new FlattenConcurrentAsyncIterable(source, function (s) { return s; }, 1, true);
};
}
//# sourceMappingURL=switchall.js.map