@pgxsinkit/pgwasm
Version:
6 lines • 388 B
TypeScript
/**
* Run at most one call at a time, and collapse waiting calls into the latest: a call made while one
* runs is scheduled after it, replacing (and resolving to `undefined`) any call already scheduled.
*/
export declare function debounceMutex<A extends unknown[], R>(fn: (...args: A) => Promise<R>): (...args: A) => Promise<R | undefined>;
//# sourceMappingURL=debounce-mutex.d.ts.map