IQueue interface

Extends

Methods

dequeue()
dispose(string)

Performs cleanup operations on this instance

enqueue(TItem)
enqueueFromPromise(Promise<TItem>)
isDisposed()
length()
peek()

Method Details

dequeue()

function dequeue()

Returns

Promise<TItem>

dispose(string)

Performs cleanup operations on this instance

function dispose(reason?: string)

Parameters

reason
string

enqueue(TItem)

function enqueue(item: TItem)

Parameters

item
TItem

enqueueFromPromise(Promise<TItem>)

function enqueueFromPromise(promise: Promise<TItem>)

Parameters

promise
Promise<TItem>

isDisposed()

function isDisposed()

Returns

boolean

length()

function length()

Returns

number

peek()

function peek()

Returns

Promise<TItem>