UNPKG

@codibre/fluent-iterable

Version:

Provides LINQ-like fluent api operations for iterables and async iterables (ES2018+).

14 lines (13 loc) 867 B
import { ErrorCallback } from '../../types/base'; export declare function mergeIterators<T>(callback: ErrorCallback | undefined, ...iterators: AsyncIterator<T>[]): AsyncIterable<T>; /** * Merge the informed async iterables into one. The item orders will be defined from what is returned first * @param iterables the iterables to merge */ export declare function mergeIterables<T>(...iterables: AsyncIterable<T>[]): AsyncIterable<T>; /** * Merge the informed async iterables into one. The item orders will be defined from what is returned first * @param callback A callback to case in case that any iterable throws an error. If informed, an failed iterable will not cause an error in the merging * @param iterables the iterables to merge */ export declare function mergeIterables<T>(callback: ErrorCallback, ...iterables: AsyncIterable<T>[]): AsyncIterable<T>;