Framework
Version
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference

AsyncQueuerState

Interface: AsyncQueuerState<TValue>

Defined in: async-queuer.ts:6

Type Parameters

TValue

Properties

activeItems

ts
activeItems: TValue[];
activeItems: TValue[];

Defined in: async-queuer.ts:10

Items currently being processed by the queuer


errorCount

ts
errorCount: number;
errorCount: number;

Defined in: async-queuer.ts:14

Number of task executions that have resulted in errors


expirationCount

ts
expirationCount: number;
expirationCount: number;

Defined in: async-queuer.ts:18

Number of items that have been removed from the queue due to expiration


isEmpty

ts
isEmpty: boolean;
isEmpty: boolean;

Defined in: async-queuer.ts:22

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


isFull

ts
isFull: boolean;
isFull: boolean;

Defined in: async-queuer.ts:26

Whether the queuer has reached its maximum capacity


isIdle

ts
isIdle: boolean;
isIdle: boolean;

Defined in: async-queuer.ts:30

Whether the queuer is not currently processing any items


isRunning

ts
isRunning: boolean;
isRunning: boolean;

Defined in: async-queuer.ts:34

Whether the queuer is active and will process items automatically


items

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

Defined in: async-queuer.ts:42

Array of items currently waiting to be processed


itemTimestamps

ts
itemTimestamps: number[];
itemTimestamps: number[];

Defined in: async-queuer.ts:38

Timestamps when items were added to the queue for expiration tracking


lastResult

ts
lastResult: any;
lastResult: any;

Defined in: async-queuer.ts:46

The result from the most recent task execution


pendingTick

ts
pendingTick: boolean;
pendingTick: boolean;

Defined in: async-queuer.ts:50

Whether the queuer has a pending timeout for processing the next item


rejectionCount

ts
rejectionCount: number;
rejectionCount: number;

Defined in: async-queuer.ts:54

Number of items that have been rejected from being added to the queue


settledCount

ts
settledCount: number;
settledCount: number;

Defined in: async-queuer.ts:58

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


size

ts
size: number;
size: number;

Defined in: async-queuer.ts:62

Number of items currently in the queue


status

ts
status: "idle" | "running" | "stopped";
status: "idle" | "running" | "stopped";

Defined in: async-queuer.ts:66

Current processing status - 'idle' when not processing, 'running' when active, 'stopped' when paused


successCount

ts
successCount: number;
successCount: number;

Defined in: async-queuer.ts:70

Number of task executions that have completed successfully

Our Partners
Unkey
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.