本页还没有译文
本页 26 段还没译成Русский,下面显示的是英文原文。AsyncQueuedSignal
还没翻译译自英文(tanstack.com)本页 26 段都还没译
Defined in: async-queuer/injectAsyncQueuedSignal.ts:10
Type Parameters
TValue
TValue
TSelected
TSelected = {
}
AsyncQueuedSignal(): TValue[];Defined in: async-queuer/injectAsyncQueuedSignal.ts:11
Returns
TValue[]
Properties
addItem
addItem: (item, position?, runOnItemsChange?) => boolean;Defined in: async-queuer/injectAsyncQueuedSignal.ts:12
Adds an item to the queue. If the queue is full, the item is rejected and onReject is called.
Items can be inserted based on priority or at the front/back depending on configuration.
undefined cannot be queued (it is the internal "no item" sentinel) and is always rejected.
Parameters
item
TValue
position?
QueuePosition
runOnItemsChange?
boolean
Returns
boolean
Example
queuer.addItem({ value: 'task', priority: 10 });
queuer.addItem('task2', 'front');queuer
queuer: AngularAsyncQueuer<TValue, TSelected>;Defined in: async-queuer/injectAsyncQueuedSignal.ts:13
AI 翻译查看英文原文