# AsyncBatcherState

# Interface: AsyncBatcherState\<TValue\>

Defined in: [async-batcher.ts:8](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L8)

## Type Parameters

### TValue

`TValue`

## Properties

### errorCount

```ts
errorCount: number;
```

Defined in: [async-batcher.ts:12](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L12)

Number of batch executions that have resulted in errors

***

### executeCount

```ts
executeCount: number;
```

Defined in: [async-batcher.ts:16](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L16)

Number of batch executions that have been executed

***

### failedItems

```ts
failedItems: TValue[];
```

Defined in: [async-batcher.ts:20](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L20)

Array of items that failed during batch processing

***

### isEmpty

```ts
isEmpty: boolean;
```

Defined in: [async-batcher.ts:24](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L24)

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

***

### isExecuting

```ts
isExecuting: boolean;
```

Defined in: [async-batcher.ts:28](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L28)

Whether a batch is currently being processed asynchronously

***

### isPending

```ts
isPending: boolean;
```

Defined in: [async-batcher.ts:32](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L32)

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

***

### items

```ts
items: TValue[];
```

Defined in: [async-batcher.ts:36](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L36)

Array of items currently queued for batch processing

***

### lastResult

```ts
lastResult: any;
```

Defined in: [async-batcher.ts:40](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L40)

The result from the most recent batch execution

***

### settleCount

```ts
settleCount: number;
```

Defined in: [async-batcher.ts:44](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L44)

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

***

### size

```ts
size: number;
```

Defined in: [async-batcher.ts:48](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L48)

Number of items currently in the batch queue

***

### status

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

Defined in: [async-batcher.ts:52](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L52)

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;
```

Defined in: [async-batcher.ts:56](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L56)

Number of batch executions that have completed successfully

***

### totalItemsFailed

```ts
totalItemsFailed: number;
```

Defined in: [async-batcher.ts:60](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L60)

Total number of items that have failed processing across all batches

***

### totalItemsProcessed

```ts
totalItemsProcessed: number;
```

Defined in: [async-batcher.ts:64](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L64)

Total number of items that have been processed across all batches
