introduce support for aborting/timing out requests
See original GitHub issuewhen i started exploring what it would look like for esri leaflet to use this lib i was reminded that we allow developers to pass their own (optional) timeout (ref: https://github.com/Esri/esri-leaflet/pull/730)
a fetch
can also be aborted using the technique below (in Edge and Firefox anyway).
const controller = new AbortController();
const signal = controller.signal;
setTimeout(() => controller.abort(), 5000);
fetch(url, { signal }).then(response => {
return response.text();
}).then(text => {
console.log(text);
});
https://developers.google.com/web/updates/2017/09/abortable-fetch
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Working with the Backlog - TechDocs - Broadcom Inc.
Tasks sometimes fail by aborting, timing out, being killed, etc. When a task fails, a record is written to History under the current...
Read more >Quartus II Message Help v13.0
Abort compilation after writing out the BLIF netlist. (ID: 18030) ... Can't perform request while the Quartus II software is busy (ID: 244003)....
Read more >Framework & Experience (Infrastructure, Cloud, Integration ...
For the power BI , we are trying to establish connection from sql server. while connecting Apps10 DB from sql server ... Activate...
Read more >T560 DIGITAL DELAY GENERATOR
Specific commands will be explained with requests of the form HElp. TRigger and such. HElp return general HELP message. HElp CHannels return help...
Read more >Applications Manager 8.0 Operations Guide
Check on the latest product developments, find out about new service ... Applications Manager Version 8.0 User Guide Requesting Jobs and Process Flows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
relevant (and from our friend @jamesmilneruk) https://www.loxodrome.io/post/cancelling-requests/
this would still be cool if anyone wants to try and put together a PR, but I won’t be tackling it anytime soon.