📄 tanstack/pacer/latest/docs/reference/interfaces/AsyncBatcherState

File: AsyncBatcherState.md | Updated: 11/15/2025

Source: https://tanstack.com/pacer/latest/docs/reference/interfaces/AsyncBatcherState



TanStack

Pacer v0v0

Search...

+ K

Auto

Log In

TanStack StartRC

Docs Examples GitHub Contributors

TanStack Router

Docs Examples GitHub Contributors

TanStack Query

Docs Examples GitHub Contributors

TanStack Table

Docs Examples Github Contributors

TanStack Formnew

Docs Examples Github Contributors

TanStack DBbeta

Docs Github Contributors

TanStack Virtual

Docs Examples Github Contributors

TanStack Paceralpha

Docs Examples Github Contributors

TanStack Storealpha

Docs Examples Github Contributors

TanStack Devtoolsalpha

Docs Github Contributors

More Libraries

Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide

Documentation

Framework

React logo

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 logo

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

AsyncBatcherState

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


### executeCount

ts

executeCount: number;


executeCount: number;

Defined in: async-batcher.ts:16

Number of batch executions that have been executed


### failedItems

ts

failedItems: TValue[];


failedItems: TValue[];

Defined in: async-batcher.ts:20

Array of items that failed during batch processing


### isEmpty

ts

isEmpty: boolean;


isEmpty: boolean;

Defined in: async-batcher.ts:24

Whether the batcher has no items to process (items array is empty)


### isExecuting

ts

isExecuting: boolean;


isExecuting: boolean;

Defined in: async-batcher.ts:28

Whether a batch is currently being processed asynchronously


### isPending

ts

isPending: boolean;


isPending: boolean;

Defined in: async-batcher.ts:32

Whether the batcher is waiting for the timeout to trigger batch processing


### items

ts

items: TValue[];


items: TValue[];

Defined in: async-batcher.ts:36

Array of items currently queued for batch processing


### lastResult

ts

lastResult: any;


lastResult: any;

Defined in: async-batcher.ts:40

The result from the most recent batch execution


### settleCount

ts

settleCount: number;


settleCount: number;

Defined in: async-batcher.ts:44

Number of batch executions that have completed (either successfully or with errors)


### size

ts

size: number;


size: number;

Defined in: async-batcher.ts:48

Number of items currently in the batch queue


### status

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


### successCount

ts

successCount: number;


successCount: number;

Defined in: async-batcher.ts:56

Number of batch executions that have completed successfully


### totalItemsFailed

ts

totalItemsFailed: number;


totalItemsFailed: number;

Defined in: async-batcher.ts:60

Total number of items that have failed processing across all batches


### totalItemsProcessed

ts

totalItemsProcessed: number;


totalItemsProcessed: number;

Defined in: async-batcher.ts:64

Total number of items that have been processed across all batches

Edit on GitHub

AsyncBatcherOptions

batch

Partners Become a Partner

Code RabbitCode Rabbit CloudflareCloudflare AG GridAG Grid NetlifyNetlify NeonNeon WorkOSWorkOS ClerkClerk ConvexConvex ElectricElectric SentrySentry PrismaPrisma StrapiStrapi UnkeyUnkey

scarf analytics