abortcontroller-polyfill
abortcontroller-polyfill copied to clipboard
`AbortSignal.timeout` throws DOMException, which is not available in React Native
Hello! I'm trying to use this in a React Native environment, as that has incomplete support for AbortController/Signal. However, after using AbortSignal.timeout, it creates a DOMException when the timeout is over. Would it be possible to check if it's running in a non-DOM environement and create a normal Error if so?
I'm quite busy with other projects so I won't have time to work on this.
Understandable, no problem!