docsby gkjohnson
On this page

Properties

running: boolean

readonly

maxJobsPerOrigin: number = 6

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

Methods

add(
	// Url the item requests data from
	url: string | null,
	item: any,

	// Invoked with `item` when it is dequeued; may return a Promise
	callback: ( item: any ) => Promise<any> | any,

	// Removes the item from the queue when aborted
	signal: AbortSignal | null = null
): Promise<any>
remove( item: any ): void
has( item: any ): boolean