()
| 123 | let unsubscribe: (() => void) | null = null |
| 124 | |
| 125 | const cleanup = () => { |
| 126 | if (timeoutId) clearTimeout(timeoutId) |
| 127 | if (unsubscribe) unsubscribe() |
| 128 | abortSignal?.removeEventListener('abort', onAbort) |
| 129 | } |
| 130 | |
| 131 | const settle = (value: AsyncConfirmationState | null) => { |
| 132 | if (settled) return |