The signal will abort with its AbortSignal.reason property set to a TimeoutError DOMException on timeout, or an AbortError DOMException if the operation was user-triggered.
Checklist
[x] I have read the documentation.
[x] I have included a pull request description of my changes.
[x] I have included some tests.
[x] If it's a new feature, I have included documentation updates in both the README and the types.
See #2371
This changes the rejected value to TimeotError when
AbortSignal:timeout()
is initially aborted.As stated in docs:
Checklist