(
queue: Queue<T>,
processJob: (job: Job<T>) => Promise<void>,
{ concurrency = 1 } = {}
)
| 8 | private activeJobs: Map<string, Promise<void>> = new Map() |
| 9 | |
| 10 | constructor( |
| 11 | queue: Queue<T>, |
| 12 | processJob: (job: Job<T>) => Promise<void>, |
| 13 | { concurrency = 1 } = {} |
| 14 | ) { |
| 15 | this.processJob = processJob |
| 16 | this.queue = queue |
| 17 | this.concurrency = concurrency |
| 18 | } |
| 19 | |
| 20 | async start() { |
| 21 | while (true) { |
nothing calls this directly
no outgoing calls
no test coverage detected