@cspell/cspell-pipe
Version:
Library to make working with Iterators/AsyncIterators easier.
13 lines • 516 B
TypeScript
/**
* Allows an iterable to be shared by multiple consumers.
* Each consumer takes from the iterable.
* @param iterable - the iterable to share
*/
export declare function toDistributableIterableSync<T>(iterable: Iterable<T>): Iterable<T>;
/**
* Allows an iterable to be shared by multiple consumers.
* Each consumer takes from the iterable.
* @param iterable - the iterable to share
*/
export declare const toDistributableIterable: typeof toDistributableIterableSync;
//# sourceMappingURL=distribute.d.ts.map