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

QueueStrategyOptions.md

59 lines1.3 KB

1---
2id: QueueStrategyOptions
3title: QueueStrategyOptions
4---
5​
6# Interface: QueueStrategyOptions
7​
8Defined in: [packages/db/src/strategies/types.ts:50](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L50)
9​
10Options for queue strategy
11Processes all executions in order (FIFO/LIFO)
12​
13## Properties
14​
15### addItemsTo?
16​
17```ts
18optional addItemsTo: "front" | "back";
19```
20​
21Defined in: [packages/db/src/strategies/types.ts:56](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L56)
22​
23Where to add new items in the queue
24​
25***
26​
27### getItemsFrom?
28​
29```ts
30optional getItemsFrom: "front" | "back";
31```
32​
33Defined in: [packages/db/src/strategies/types.ts:58](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L58)
34​
35Where to get items from when processing
36​
37***
38​
39### maxSize?
40​
41```ts
42optional maxSize: number;
43```
44​
45Defined in: [packages/db/src/strategies/types.ts:54](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L54)
46​
47Maximum queue size (items are dropped if exceeded)
48​
49***
50​
51### wait?
52​
53```ts
54optional wait: number;
55```
56​
57Defined in: [packages/db/src/strategies/types.ts:52](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L52)
58​
59Wait time between processing queue items (milliseconds)