Package version
This error is thrown when an asynchronous operation has been aborted. Check for this error by testing the name that the name property of the error matches "AbortError".
name
"AbortError"
const controller = new AbortController(); controller.abort(); try { doAsyncWork(controller.signal) } catch (e) { if (e.name === 'AbortError') { // handle abort error here. } }
Generated using TypeDoc
This error is thrown when an asynchronous operation has been aborted. Check for this error by testing the
name
that the name property of the error matches"AbortError"
.const controller = new AbortController(); controller.abort(); try { doAsyncWork(controller.signal) } catch (e) { if (e.name === 'AbortError') { // handle abort error here. } }