Open History to see the last commit
1---
2id: AngularAsyncBatcherOptions
3title: AngularAsyncBatcherOptions
4---
5
6Defined in: [packages/angular-pacer/src/async-batcher/injectAsyncBatcher.ts:28](https://github.com/TanStack/pacer/blob/main/packages/angular-pacer/src/async-batcher/injectAsyncBatcher.ts#L28)
7
8Options for [injectAsyncBatcher](../functions/injectAsyncBatcher.md), including core configuration and Angular cleanup.
9
10## Extends
11
12- `AsyncBatcherOptions`\<`TValue`\>
13
14## Type Parameters
15
16### TValue
17
18`TValue`
19
20## Properties
21
22### onUnmount?
23
24```ts
25optional onUnmount?: (batcher) => void;
26```
27
28Defined in: [packages/angular-pacer/src/async-batcher/injectAsyncBatcher.ts:35](https://github.com/TanStack/pacer/blob/main/packages/angular-pacer/src/async-batcher/injectAsyncBatcher.ts#L35)
29
30Called when the owning injection context is destroyed. Receives the core instance.
31Providing this callback replaces the default cleanup (cancel pending batches and abort running work).
32
33#### Parameters
34
35##### batcher
36
37`AsyncBatcher`\<`TValue`\>
38
39#### Returns
40
41`void`