()
| 35576 | }; |
| 35577 | |
| 35578 | const run = () => { |
| 35579 | this.running[key] = true; |
| 35580 | this.runningCount++; |
| 35581 | |
| 35582 | factory().then(function (val) { |
| 35583 | resolve(val); |
| 35584 | next(); |
| 35585 | return null; |
| 35586 | }).catch(function (err) { |
| 35587 | reject(err); |
| 35588 | next(); |
| 35589 | }); |
| 35590 | }; |
| 35591 | |
| 35592 | this.maybePushConcurrencyQueue(run); |
| 35593 | } |