Re: [whatwg/streams] Should the "set up" algorithm for IDL-created WritableStreams wrap the write algorithm? (Issue #1253)

That's an interesting observation. I can justify it after-the-fact by saying that a _writeAlgorithm_ should always return a promise in order to correctly support backpressure. On the other hand, none of the platform transforms I've defined return an unsettled promise.

Probably there is simply no need to wrap it? If there are two or more standards that always return a settled promise then it might we worth doing so that they could be more concise.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1253#issuecomment-1411367082
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1253/1411367082@github.com>

Received on Wednesday, 1 February 2023 02:31:36 UTC