abortcontroller-polyfill icon indicating copy to clipboard operation
abortcontroller-polyfill copied to clipboard

`AbortSignal.timeout` throws DOMException, which is not available in React Native

Open mozzius opened this issue 2 months ago • 2 comments

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?

mozzius avatar Nov 01 '25 14:11 mozzius

I'm quite busy with other projects so I won't have time to work on this.

mo avatar Nov 03 '25 07:11 mo

Understandable, no problem!

mozzius avatar Nov 03 '25 07:11 mozzius