Re: [whatwg/streams] Make it easy to create streams with no underlying source/sink/transformer objects, from specs (#813)

> Maybe we'd even abstract out the promise-stuff too so those steps don't have to return promises.

I started doing this and it caused more trouble than it's worth in the short term. E.g. you end up converting from promises to async algorithms back to promises, which in theory adds an extra microtask, and in any case is awkward to follow. (Not sure if the microtask is observable though, since I don't think any code can interleave between them.)

So we can leave that for another day, perhaps when add the concept of "asynchronous algorithm" or "spec promise" to Infra.

-- 
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/streams/issues/813#issuecomment-345011225

Received on Thursday, 16 November 2017 18:17:43 UTC