question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

introduce support for aborting/timing out requests

See original GitHub issue

when 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:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jgravoiscommented, Sep 22, 2019
0reactions
jgravoiscommented, Dec 17, 2019

this would still be cool if anyone wants to try and put together a PR, but I won’t be tackling it anytime soon.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found