[whatwg/xhr] Editorial: adopt Fetch's new approach to callbacks (#311)

See https://github.com/whatwg/fetch/pull/1165 for context.

@domenic so it seems XHR does all the awkward ways of reading a response body without helper. Lots of technical debt came with the introduction of streams to fetch. I didn't try to touch that here and instead focused purely on adopting the new callback approach, which does seem a lot cleaner in terms of what things get to run concurrently and such, but that does seem like an obvious thing to try to tackle next.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/xhr/pull/311

-- Commit Summary --

  * Editorial: adopt Fetch's new approach to callbacks

-- File Changes --

    M xhr.bs (69)

-- Patch Links --

https://github.com/whatwg/xhr/pull/311.patch
https://github.com/whatwg/xhr/pull/311.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/pull/311

Received on Wednesday, 10 February 2021 11:24:13 UTC