File: AsyncBatcherState.md | Updated: 11/15/2025
Search...
+ K
Auto
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide
Documentation
Framework
React
Version
Latest
Search...
+ K
Menu
Getting Started
Guides
API Reference
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference
Debouncer Examples
Throttler Examples
Rate Limiter Examples
Queue Examples
Batcher Examples
TanStack Query Examples
Framework
React
Version
Latest
Menu
Getting Started
Guides
API Reference
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference
Debouncer Examples
Throttler Examples
Rate Limiter Examples
Queue Examples
Batcher Examples
TanStack Query Examples
On this page
Copy Markdown
Interface: AsyncBatcherState<TValue>
====================================
Defined in: async-batcher.ts:8
Type Parameters
---------------
### TValue
TValue
Properties
----------
### errorCount
ts
errorCount: number;
errorCount: number;
Defined in: async-batcher.ts:12
Number of batch executions that have resulted in errors
ts
executeCount: number;
executeCount: number;
Defined in: async-batcher.ts:16
Number of batch executions that have been executed
ts
failedItems: TValue[];
failedItems: TValue[];
Defined in: async-batcher.ts:20
Array of items that failed during batch processing
ts
isEmpty: boolean;
isEmpty: boolean;
Defined in: async-batcher.ts:24
Whether the batcher has no items to process (items array is empty)
ts
isExecuting: boolean;
isExecuting: boolean;
Defined in: async-batcher.ts:28
Whether a batch is currently being processed asynchronously
ts
isPending: boolean;
isPending: boolean;
Defined in: async-batcher.ts:32
Whether the batcher is waiting for the timeout to trigger batch processing
ts
items: TValue[];
items: TValue[];
Defined in: async-batcher.ts:36
Array of items currently queued for batch processing
ts
lastResult: any;
lastResult: any;
Defined in: async-batcher.ts:40
The result from the most recent batch execution
ts
settleCount: number;
settleCount: number;
Defined in: async-batcher.ts:44
Number of batch executions that have completed (either successfully or with errors)
ts
size: number;
size: number;
Defined in: async-batcher.ts:48
Number of items currently in the batch queue
ts
status: "idle" | "pending" | "executing" | "populated";
status: "idle" | "pending" | "executing" | "populated";
Defined in: async-batcher.ts:52
Current processing status - 'idle' when not processing, 'pending' when waiting for timeout, 'executing' when processing, 'populated' when items are present, but no wait is configured
ts
successCount: number;
successCount: number;
Defined in: async-batcher.ts:56
Number of batch executions that have completed successfully
ts
totalItemsFailed: number;
totalItemsFailed: number;
Defined in: async-batcher.ts:60
Total number of items that have failed processing across all batches
ts
totalItemsProcessed: number;
totalItemsProcessed: number;
Defined in: async-batcher.ts:64
Total number of items that have been processed across all batches
