()
| 23 | const timeoutSignal = createTimeoutController(timeout) |
| 24 | |
| 25 | const waitForResult = async () => { |
| 26 | while (true) { |
| 27 | const intervalSignal = createTimeoutController(interval) |
| 28 | timeoutSignal.onTimeout(() => intervalSignal.cancel()) |
| 29 | |
| 30 | await intervalSignal.wrap(new Promise<void>(addResolver)) |
| 31 | |
| 32 | if (checkResult() || timeoutSignal.timedOut) { |
| 33 | return |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | if (!checkResult()) { |
| 39 | await act(() => timeoutSignal.wrap(waitForResult())) |
no test coverage detected
searching dependent graphs…