eclipsesource / eclipsesource/tabris-js
Enable reliable fetch() timeout handling
Open
api
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
### Problem description
Currently, `fetch()` will reject with a `TypeError` with the message `Network request timed out`. The only way to detect this error kind is matching its message, which might unexpectedly change in the future.
### Expected behavior
Errors thrown on timeout should have a distinct type (e.g. `TimeoutError`) to enable reliable error handling.
### Environment
Tabris.js version: 3.x
Contributor guide
Assessment
This issue has not been assessed yet.