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

QueueStrategyOptions.md

57 lines1.3 KB

Defined in: packages/db/src/strategies/types.ts:50

Options for queue strategy Processes all executions in order (FIFO/LIFO)

Properties

addItemsTo?

optional addItemsTo: "front" | "back";

Defined in: packages/db/src/strategies/types.ts:56

Where to add new items in the queue


getItemsFrom?

optional getItemsFrom: "front" | "back";

Defined in: packages/db/src/strategies/types.ts:58

Where to get items from when processing


maxSize?

optional maxSize: number;

Defined in: packages/db/src/strategies/types.ts:54

Maximum number of waiting items; overflow rejects its transaction. A value of 0 rejects every mutation, including the first.


wait?

optional wait: number;

Defined in: packages/db/src/strategies/types.ts:52

Wait time between processing queue items (milliseconds)