Queue class

Constructors

Queue(List<TItem>)

Properties

dequeue
dispose
drainAndDispose
enqueue
enqueueFromPromise
isDisposed
length
peek

Constructor Details

Queue(List<TItem>)

new Queue(list?: List<TItem>)

Parameters

list
List<TItem>

Property Details

dequeue

dequeue: () => Promise<TItem>

Property Value

() => Promise<TItem>

dispose

dispose: (reason?: string) => void

Property Value

(reason?: string) => void

drainAndDispose

drainAndDispose: (pendingItemProcessor: (pendingItemInQueue: TItem) => void, reason?: string) => Promise<boolean>

Property Value

(pendingItemProcessor: (pendingItemInQueue: TItem) => void, reason?: string) => Promise<boolean>

enqueue

enqueue: (item: TItem) => void

Property Value

(item: TItem) => void

enqueueFromPromise

enqueueFromPromise: (promise: Promise<TItem>) => void

Property Value

(promise: Promise<TItem>) => void

isDisposed

isDisposed: () => boolean

Property Value

() => boolean

length

length: () => number

Property Value

() => number

peek

peek: () => Promise<TItem>

Property Value

() => Promise<TItem>