()
| 42 | } |
| 43 | |
| 44 | startBackgroundQueue() { |
| 45 | this.pollingTimer = setInterval(() => { |
| 46 | if (this.foregroundPool.size > 0) { |
| 47 | return |
| 48 | } |
| 49 | |
| 50 | this.dequeueBackgroundJob() |
| 51 | }, this.pollingTime) |
| 52 | } |
| 53 | |
| 54 | startForegroundJob() { |
| 55 | const key = process.hrtime().join('.') |
no test coverage detected