()
| 115 | }, timeout); |
| 116 | |
| 117 | const pollStop = () => { |
| 118 | if (settled) return; |
| 119 | if (flowStopped) { |
| 120 | cleanup(); |
| 121 | reject(new Error(STOP_ERROR_MESSAGE)); |
| 122 | return; |
| 123 | } |
| 124 | stopTimer = setTimeout(pollStop, 100); |
| 125 | }; |
| 126 | pollStop(); |
| 127 | }); |
| 128 | } |
no test coverage detected