new AsyncQueue(): AsyncQueue<T, K, R>Returns:
AsyncQueue<T, K, R>Attributes
hooks:
{ added: SyncHook<[T]>; beforeAdd: AsyncSeriesHook<[T]>; beforeStart: AsyncSeriesHook<[T]>; result: SyncHook<[T, WebpackError | null | undefined, R | null | undefined]>; started: SyncHook<[T]> }M
add
add(item, callback): voidAttributes
Processes the provided item.
clear(): voidReturns:
voiddecreaseParallelism(): voidReturns:
voidDecrease parallelism.
getContext(): stringReturns:
stringReturns context of execution.
increaseParallelism(): voidReturns:
voidIncrease parallelism.
invalidate(item): voidAttributes
item:
TReturns:
voidProcesses the provided item.
isDone(item): booleanAttributes
item:
TReturns:
booleanChecks whether this async queue is done.
isProcessing(item): booleanAttributes
item:
TReturns:
booleanChecks whether this async queue is processing.
isQueued(item): booleanAttributes
item:
TReturns:
booleanChecks whether this async queue is queued.
setContext(value): voidAttributes
Updates context using the provided value.
M
stop
stop(): voidReturns:
voidDescribes how this stop operation behaves.
waitFor(item, callback): voidAttributes
Waits for an already started item
Attributes