UNPKG

@drip_sync/drip

Version:

Scalable incremental sync for MongoDB aggregation pipelines

11 lines (10 loc) 272 B
export declare class FlushBuffer<T> { private _items; private _timer; private _maxLength; private _flusher; constructor(maxLength: number, flusher: (items: T[]) => Promise<void>); push(t: T): Promise<void>; private _flush; abort(): void; }