iter-tools-es
Version:
The iterable toolbox
4 lines • 420 B
TypeScript
import { AsyncWrappable, AsyncIterableIterator } from '../../types/async-iterable';
declare function asyncSplitWhen<T>(predicate: (value: T, i: number) => any): (source: AsyncWrappable<T>) => AsyncIterableIterator<AsyncIterableIterator<T>>;
declare function asyncSplitWhen<T>(predicate: (value: T, i: number) => any, source: AsyncWrappable<T>): AsyncIterableIterator<AsyncIterableIterator<T>>;
export { asyncSplitWhen };