[whatwg/fetch] Fix cancellation in the fetchLater event accumulation example (PR #1973)

Create a controller for each deferred request, pass its signal through RequestInit.signal, and retain the result. A pending request can then be aborted before the accumulated events are queued again.


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/fetch/1973.html" title="Last updated on Nov 16, 2026, 2:22 AM UTC (e237091)">Preview</a> | <a href="https://whatpr.org/fetch/1973/59afe34...e237091.html" title="Last updated on Nov 16, 2026, 2:22 AM UTC (e237091)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1973

-- Commit Summary --

  * Fix cancellation in the fetchLater event accumulation example

-- File Changes --

    M fetch.bs (9)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1973.patch
https://github.com/whatwg/fetch/pull/1973.diff

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

Message ID: <whatwg/fetch/pull/1973@github.com>

Received on Monday, 16 November 2026 02:23:15 UTC