본문으로 건너뛰기

인터페이스: AsyncBatcherState<TValue>

정의 위치: async-batcher.ts:8

타입 매개변수

TValue

TValue

속성

errorCount

errorCount: number;

정의 위치: async-batcher.ts:12

오류가 발생한 배치 실행 횟수입니다.


executeCount

executeCount: number;

정의 위치: async-batcher.ts:16

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


failedItems

failedItems: TValue[];

정의 위치: async-batcher.ts:20

배치 처리 중 실패한 항목의 배열입니다.


isEmpty

isEmpty: boolean;

정의 위치: async-batcher.ts:24

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


isExecuting

isExecuting: boolean;

정의 위치: async-batcher.ts:28

현재 배치를 비동기로 처리 중인지 여부입니다.


isPending

isPending: boolean;

정의 위치: async-batcher.ts:32

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


items

items: TValue[];

정의 위치: async-batcher.ts:36

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


lastResult

lastResult: any;

정의 위치: async-batcher.ts:40

가장 최근 배치 실행의 결과입니다.


settleCount

settleCount: number;

정의 위치: async-batcher.ts:44

완료된 배치 실행 횟수입니다(성공 또는 오류).


size

size: number;

정의 위치: async-batcher.ts:48

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


status

status: "idle" | "executing" | "pending" | "populated";

정의 위치: async-batcher.ts:52

현재 처리 상태입니다. 처리 중이 아니면 'idle', 타임아웃을 기다리는 중이면 'pending', 처리 중이면 'executing', 항목은 있지만 wait가 구성되지 않았으면 'populated'입니다.


successCount

successCount: number;

정의 위치: async-batcher.ts:56

성공적으로 완료된 배치 실행 횟수입니다.


totalItemsFailed

totalItemsFailed: number;

정의 위치: async-batcher.ts:60

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


totalItemsProcessed

totalItemsProcessed: number;

정의 위치: async-batcher.ts:64

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