(signal: AbortSignal)
| 87 | } |
| 88 | |
| 89 | function signalAbortError(signal: AbortSignal): Error { |
| 90 | const reason = signal.reason; |
| 91 | return reason instanceof Error ? reason : new Error("Poll aborted"); |
| 92 | } |
| 93 | |
| 94 | function defaultAbortableSleep(signal?: AbortSignal): (ms: number) => Promise<void> { |
| 95 | // fallow-ignore-next-line complexity |
no outgoing calls
no test coverage detected