UNPKG

@deepkit/core

Version:
10 lines (9 loc) 424 B
export declare function throttleTime(call: Function, cps?: number): (...args: any[]) => void; /** * This functions returns a stack that is filled as long as the gate is not activated. * Once activated all recorded calls go to given callback and subsequent calls go directly to given callback. */ export declare function bufferedGate<T>(callback: (arg: T) => any): { activate: () => void; call: (i: T) => void; };