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
https://fetch.spec.whatwg.org/#garbage-collection
We need to use a
FinalizationRegistrywhich 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