Skip to content

LinkedQueue

do- edited this page Aug 28, 2026 · 16 revisions

LinkedQueue is a Queue descendant implementing an in memory Linked list based queue.

Can be extended with a Doser instance for incoming items batching.

Options

Name Type Default Description
doser Object undefined bag of options for Doser
maxSize Number Infinity the maximum number of requests queued in memory

Properties

Name Type Description Note
doser Doser Preliminary buffer Created and .pipe()d if the doser option is provieded
size Number the actual queue size Read only
[Tracker.LOGGING_DETAILS] Object log payload {size, maxSize, request}
[Tracker.LOGGING_EVENTS] Object logging '+' and '-' events

Methods

add (request)

This synchronous method adds the request to the queue and calls check () which leads to the Job creation as soon as the capacity allows it.

Events

Name Payload When emitted
+ the request being added After the size is incremented
- the request to be fetched next After the size is decremented

Clone this wiki locally