UNPKG

@reactivex/ix-es5-esm

Version:

The Interactive Extensions for JavaScript

22 lines (20 loc) 845 B
import { __read, __spreadArray } from "tslib"; import { ConcatAsyncIterable } from '../concat.js'; /** * Concatenates all async-iterable sequences in the given sequences, as long as the previous async-iterable * sequence terminated successfully. * * @template T The type of the elements in the sequences. * @param {...AsyncIterable<T>[]} args The async-iterable sources. * @returns {AsyncIterableX<T>} An async-iterable sequence that contains the elements of each given sequence, in sequential order. */ export function concatWith() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return function concatWithOperatorFunction(source) { return new ConcatAsyncIterable(__spreadArray([source], __read(args), false)); }; } //# sourceMappingURL=concatwith.js.map