Skip to content

terminate fetch when not observable after GC #949

@ronag

Description

@ronag

https://fetch.spec.whatwg.org/#garbage-collection

We need to use a FinalizationRegistry which terminates fetch when the registered object is GC:d. The question is. Which object(s) do we need to wait for?

My current thinking is:

Before headers: If returned promise is GC:d
After headers: If body is GC:d

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfetch

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions