Y
Hacker News
new
|
ask
|
show
|
jobs
by
explaininjs
690 days ago
If you’re fine with manually checking a standard interface to see if you should abort, JS’s answer is the AbortController. This is supported by features like the “fetch” function for making cancellable http requests.
https://developer.mozilla.org/en-US/docs/Web/API/AbortContro...