(promise, error, timeoutMs)
| 537 | // if that happens within the `timeoutMs` timespan, or rejects with `error` as |
| 538 | // a reason otherwise. |
| 539 | function fires(promise, error, timeoutMs) { |
| 540 | const timeout = timeoutPromise(error, timeoutMs); |
| 541 | return Promise.race([ |
| 542 | onResolvedOrRejected(promise, () => timeout.clear()), |
| 543 | timeout, |
| 544 | ]); |
| 545 | } |
| 546 | |
| 547 | /** |
| 548 | * When waiting for inspector events, there might be no handles on the event |
no test coverage detected
searching dependent graphs…