Download mobile/modules/engine/src/utils/reportAbort.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 269 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/engine/src/utils/reportAbort.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/modules/engine/src/utils/reportAbort.ts
-
curl -L -o reportAbort.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/engine/src/utils/reportAbort.ts
269 Bytes
| /** React Native AbortSignal does not provide throwIfAborted. */ | |
| export function assertReportNotAborted(signal?: AbortSignal): void { | |
| if (!signal?.aborted) return | |
| const error = new Error("Incident report aborted") | |
| error.name = "AbortError" | |
| throw error | |
| } | |