The type of the job data.
The type of the completed job result data.
Optional array of initial jobs to populate the queue.
OptionalidFunction: () => stringOptional function to generate unique job IDs. If not provided, an incrementing ID is used.
A new Queue instance.
Create a new job queue.