Skip to content
Source
Sign inSign up
TanStack/pacer
Open History to see the last commit

AngularAsyncQueuerOptions.md

41 lines1004 Bytes

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