@tanstack/db
Version:
A reactive client store for building super fast apps on sync
12 lines (11 loc) • 505 B
TypeScript
/**
* Eligible transactions wait behind current persistence. A new callback for
* the same transaction replaces its pending work; distinct transactions from
* managers sharing one strategy retain their own callbacks. `wait` bounds
* actual starts independently of a strategy's admission timer.
*/
export declare function createSerialPacer(wait: number): {
schedule(callback: () => Promise<unknown>, owner?: {}): void;
hasPending(owner?: object): boolean;
cancel(owner?: object): void;
};