harperdb
Version:
HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.
8 lines (7 loc) • 343 B
TypeScript
/**
* Throttle function to limit the number of calls to a function so that the event queue doesn't get overwhelmed.
* @param fn
* @param onLimitExceeded
* @param maxQueueTimeLimit
*/
export declare function throttle(fn: (...args: any) => any, onLimitExceeded?: (...args: any) => any, maxQueueTimeLimit?: number): (...args: any[]) => any;