docsby gkjohnson
On this page

Properties

running: boolean

readonly

maxJobs: number = 6

autoUpdate: boolean = true

priorityCallback: ( a: any, b: any ) => number | null = null

Methods

sort(): void
has( item: any ): boolean
add(
	item: any,

	// Invoked with `item` when it is dequeued; may return a Promise
	callback: ( item: any ) => Promise<any> | any
): Promise<any>
remove( item: any ): void
removeByFilter(
	// Called with each item; return true to remove
	filter: ( item: any ) => boolean
): void
tryRunJobs(): void
flush( item: any ): Promise<any> | any
scheduleJobRun(): void