Re: [whatwg/streams] ReadableStream.from(asyncIterable) (#1083)

I started working on a draft implementation in https://bugzilla.mozilla.org/show_bug.cgi?id=1772772.

My feedback so far is that the _cancelAlgorithm_ doesn't seem to follow what seems to be the usual pattern of JS behavior. I think the reason is that you want to use the value returned by the `return` function. Maybe we should just use `IteratorClose` and resolve with undefined?

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

Message ID: <whatwg/streams/pull/1083/c1147468088@github.com>

Received on Monday, 6 June 2022 13:49:07 UTC