UNPKG

@thi.ng/transducers-async

Version:

Async versions of various highly composable transducers, reducers and iterators

15 lines 676 B
export interface SidechainOpts { /** * If true (default), only emits the last received value when the sidechain * delivers a truthy value. Otherwise buffers and emits *all* received * values since the last time the sidechain triggered. * * @defaultValue true */ lastOnly: boolean; } export declare function sidechain<T>(src: AsyncIterable<T>, side: AsyncIterable<any>, opts: Partial<SidechainOpts> & { lastOnly: false; }): AsyncIterableIterator<T[]>; export declare function sidechain<T>(src: AsyncIterable<T>, side: AsyncIterable<any>, opts?: Partial<SidechainOpts>): AsyncIterableIterator<T>; //# sourceMappingURL=sidechain.d.ts.map