본문으로 건너뛰기

인터페이스: BatcherState<TValue>

정의 위치: batcher.ts:6

타입 매개변수

TValue

TValue

속성

executionCount

executionCount: number;

정의 위치: batcher.ts:10

완료된 배치 실행 횟수입니다.


isEmpty

isEmpty: boolean;

정의 위치: batcher.ts:14

배처에 처리할 항목이 없는지 여부입니다(items 배열이 비어 있음).


isPending

isPending: boolean;

정의 위치: batcher.ts:18

배처가 타임아웃에 의해 배치 처리가 트리거되기를 기다리는지 여부입니다.


items

items: TValue[];

정의 위치: batcher.ts:22

배치 처리를 위해 현재 큐에 들어 있는 항목의 배열입니다.


size

size: number;

정의 위치: batcher.ts:26

현재 배치 큐에 있는 항목 수입니다.


status

status: "idle" | "pending";

정의 위치: batcher.ts:30

현재 처리 상태입니다. 처리 중이 아니면 'idle', 타임아웃을 기다리는 중이면 'pending'입니다.


totalItemsProcessed

totalItemsProcessed: number;

정의 위치: batcher.ts:34

모든 배치에서 처리된 항목의 총수입니다.