Re: [ServiceWorker] Returning a FetchPromise from fetch() (#625)

Promise combinators aren't going to preserve aborting either; you can mix multiple types of Promises!  A specialized CancelablePromise combinator can know how to clone/pipe, so no special work required there.

`await` can potentially know about the difference between Promises and Tasks, and clone/pipe appropriately.

There's nothing parallel-universe about this, except that if you explicitly treat them as multi-cast, you either lose aborting, or you leak capabilities.  This is inescapable, and you already ran into it with streams, so I'm unsure of why you're resisting here.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/625#issuecomment-75343764

Received on Saturday, 21 February 2015 00:23:25 UTC