(time: number)
| 132 | } |
| 133 | |
| 134 | timeout(time: number): Promise<void> { |
| 135 | return new Promise<void>(res => { |
| 136 | const id = setTimeout(res, time); |
| 137 | this.#abortController.signal.addEventListener('abort', () => { |
| 138 | res(); |
| 139 | clearTimeout(id); |
| 140 | }); |
| 141 | }); |
| 142 | } |
| 143 | |
| 144 | async waitForEventsAfterAction( |
| 145 | action: () => Promise<unknown>, |
no outgoing calls
no test coverage detected