UNPKG

@push.rocks/lik

Version:

Provides a collection of lightweight helpers and utilities for Node.js projects.

14 lines (13 loc) 421 B
import * as plugins from './lik.plugins.js'; export declare class BackpressuredArray<T> { data: T[]; private highWaterMark; hasSpace: plugins.smartrx.rxjs.Subject<"hasSpace">; private itemsAvailable; constructor(highWaterMark?: number); push(item: T): boolean; shift(): T | undefined; checkSpaceAvailable(): boolean; waitForSpace(): Promise<void>; waitForItems(): Promise<void>; }