On this page

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]> }
add(item, callback): void
Attributes
item:T
callback:CallbackAsyncQueue<R>
Returns:void

Processes the provided item.


clear(): void
Returns:void

decreaseParallelism(): void
Returns:void

Decrease parallelism.


getContext(): string
Returns:string

Returns context of execution.


increaseParallelism(): void
Returns:void

Increase parallelism.


invalidate(item): void
Attributes
item:T
Returns:void

Processes the provided item.


isDone(item): boolean
Attributes
item:T
Returns:boolean

Checks whether this async queue is done.


isProcessing(item): boolean
Attributes
item:T
Returns:boolean

Checks whether this async queue is processing.


isQueued(item): boolean
Attributes
item:T
Returns:boolean

Checks whether this async queue is queued.


setContext(value): void
Attributes
value:string
Returns:void

Updates context using the provided value.


stop(): void
Returns:void

Describes how this stop operation behaves.


waitFor(item, callback): void
Attributes
item:T
callback:CallbackAsyncQueue<R>
Returns:void

Waits for an already started item

Attributes
err:WebpackError | null
result:T | null
Returns:void