Hacker News new | ask | show | jobs
by mrspeaker 4000 days ago
I love that the Fetch API is happening (has happened!): https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API

    fetch(url).then(data => ...)
Not earth-shattering, but much more fun than XHR!
3 comments

We've been making that joke internally at Mozilla for at least a year.
fetch looks nice on the surface, but you can't cancel a request. is there even a timeout?
how do I use it with the yield keyword?