Defined in: queuer.ts:4
Options for configuring a Queuer instance
• TValue
optional getPriority: (item) => number;
optional getPriority: (item) => number;
Defined in: queuer.ts:9
Function to determine priority of items in the queuer Higher priority items will be processed first
TValue
number
optional initialItems: TValue[];
optional initialItems: TValue[];
Defined in: queuer.ts:13
Initial items to populate the queuer with
optional maxSize: number;
optional maxSize: number;
Defined in: queuer.ts:17
Maximum number of items allowed in the queuer
optional onGetNextItem: (item, queuer) => void;
optional onGetNextItem: (item, queuer) => void;
Defined in: queuer.ts:21
Callback fired whenever an item is removed from the queuer
TValue
Queuer<TValue>
void
optional onUpdate: (queuer) => void;
optional onUpdate: (queuer) => void;
Defined in: queuer.ts:25
Callback fired whenever an item is added or removed from the queuer
Queuer<TValue>
void
optional started: boolean;
optional started: boolean;
Defined in: queuer.ts:29
Whether the queuer should start processing tasks immediately
optional wait: number;
optional wait: number;
Defined in: queuer.ts:33
Time in milliseconds to wait between processing items
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.