Defined in: angular-pacer/src/queuer/injectQueuedSignal.ts:6
TValue
TSelected = { }
QueuedSignal(): TValue[];Defined in: angular-pacer/src/queuer/injectQueuedSignal.ts:7
TValue[]
addItem: (item, position?, runOnItemsChange?) => boolean;Defined in: angular-pacer/src/queuer/injectQueuedSignal.ts:8
Adds an item to the queue. If the queue is full, the item is rejected and onReject is called. undefined cannot be queued (it is the internal "no item" sentinel) and is always rejected. Items can be inserted based on priority or at the front/back depending on configuration.
Returns true if the item was added, false if the queue is full.
Example usage:
queuer.addItem('task');
queuer.addItem('task2', 'front');TValue
QueuePosition
boolean
boolean
queuer: AngularQueuer<TValue, TSelected>;Defined in: angular-pacer/src/queuer/injectQueuedSignal.ts:9