()
| 22 | if (active > maxActive) maxActive = active; |
| 23 | }; |
| 24 | const leave = () => { |
| 25 | active -= 1; |
| 26 | }; |
| 27 | const jobs = Array.from({ length: 20 }).map(() => new Promise((resolve, reject) => { |
| 28 | setTimeout(() => { |
| 29 | try { |
no outgoing calls
no test coverage detected