Re: [whatwg/fetch] Return a "controller" instance from fetch (#1329)

@noamr commented on this pull request.



> @@ -3756,6 +3804,9 @@ the request.
  <a for="fetch params">cross-origin isolated capability</a> is
  <var>crossOriginIsolatedCapability</var>.
 
+ <li><p>If <var>processFetchStart</var> is not null, invoke <var>processFetchStart</var> with
+ <var>fetchParams</var>'s <a for="fetch params">controller</a>.

That would make things simpler

But it would mean that the SW terminating its internal fetch would be a "side effect" of termination ('when the controller is terminated'), and I tried to make it an explicit call from a termination algorithm where it's clear what calls what. I can go either way



-- 
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/fetch/pull/1329#discussion_r750282677

Received on Tuesday, 16 November 2021 13:41:22 UTC