()
| 49 | check(); |
| 50 | } |
| 51 | function check() { |
| 52 | while (tokens.length && processing.size < concurrency) { |
| 53 | const token = tokens.shift(); |
| 54 | processing.add(token); |
| 55 | token.resolve(); |
| 56 | } |
| 57 | } |
| 58 | async function limited(...args) { |
| 59 | const token = await getToken(); |
| 60 | try { |
no test coverage detected