()
| 85 | }; |
| 86 | |
| 87 | const startTimer = (): void => { |
| 88 | if (controller.signal.aborted || pendingElicitations > 0) return; |
| 89 | if (remainingMs <= 0) { |
| 90 | abortForTimeout(); |
| 91 | return; |
| 92 | } |
| 93 | startedAt = Date.now(); |
| 94 | timer = setTimeout(() => { |
| 95 | remainingMs = 0; |
| 96 | abortForTimeout(); |
| 97 | }, remainingMs); |
| 98 | }; |
| 99 | |
| 100 | startTimer(); |
| 101 |
no test coverage detected