Re: [whatwg/fetch] WIP: Cancelation (#523)

wanderview commented on this pull request.



>   <li>
   <p>Run the following <a>in parallel</a>:
 
-  <p><a for=/>Fetch</a> <var>request</var>.
+  <p><a for=/>Fetch</a> <var>request</var> and let <var>ongoingFetch</var> be the ongoing fetch.

Can you set a flag that is shared between main thread and the in parallel steps?  Then you can have various "cancellation points" where you check that flag.  Somewhat similar to how the implementation is done in places.  Of course, cancelling the network stack doesn't work that way, but maybe you could poll the flag there.

-- 
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/523#discussion_r110917880

Received on Tuesday, 11 April 2017 14:32:27 UTC