인터페이스: ThrottlerState<TFn>
정의 위치: throttler.ts:6
타입 매개변수
TFn
TFn은 AnyFunction을 확장합니다.
속성
executionCount
executionCount: number;
정의 위치: throttler.ts:10
완료된 함수 실행 횟수입니다.
isPending
isPending: boolean;
정의 위치: throttler.ts:14
스로틀러가 타임아웃에 의해 실행이 트리거되기를 기다리는 중인지 여부입니다.
lastArgs
lastArgs: Parameters<TFn> | undefined;
정의 위치: throttler.ts:18
가장 최근의 maybeExecute 호출에 전달된 인수입니다.
lastExecutionTime
lastExecutionTime: number;
정의 위치: throttler.ts:22
마지막 함수 실행 시점의 타임스탬프이며, 단위는 밀리초입니다.
maybeExecuteCount
maybeExecuteCount: number;
정의 위치: throttler.ts:26
maybeExecute가 호출된 횟수입니다(감소율 계산에 사용).
nextExecutionTime
nextExecutionTime: number | undefined;
정의 위치: throttler.ts:30
다음 실행이 가능한 시점의 타임스탬프이며, 단위는 밀리초입니다.
status
status: "disabled" | "idle" | "pending";
정의 위치: throttler.ts:34
현재 실행 상태입니다. 활성 상태가 아니면 'idle', 타임아웃을 기다리는 중이면 'pending'입니다.