function injectQueuerItems<TValue>(fn, options?): AngularQueuerItems<TValue>;Defined in: packages/angular-pacer/src/queuer/injectQueuerItems.ts:48
Creates a readonly Angular signal of pending queue items.
Items appear when added and disappear when removed for processing. This signal contains waiting items, not processing results. Use the attached queuer methods to add items, start or stop processing, or inspect the queue.
Options accept a static object or reactive factory and follow the underlying queuer's lifecycle and provider behavior. The returned function is an Angular signal.
TValue
(value) => void
The callback that processes each queued item.
MaybeAccessor<AngularQueuerOptions<TValue>>
Core queue options or a reactive options factory.
AngularQueuerItems<TValue>
A readonly items signal with queuer and addItem attributes.
// In a component or service injection context.
const items = injectQueuerItems(
(item: string) => console.log(item),
{ started: false },
)
items.addItem('job')
console.log(items()) // ['job']
items.queuer.start()function injectQueuerItems<TValue, TSelected>(
fn,
options,
selector): AngularQueuerItems<TValue, TSelected>;Defined in: packages/angular-pacer/src/queuer/injectQueuerItems.ts:56
Creates the items signal with selected state on its attached queuer.
TValue
TSelected
(value) => void
MaybeAccessor<AngularQueuerOptions<TValue>>
(state) => TSelected
Selects reactive state exposed on the attached queuer.
AngularQueuerItems<TValue, TSelected>