Closed vadzim closed 9 months ago
As implemented, we have the same semantics as for await (const x of It()) ...
, and so the iterable is not closed.
@mgaudet There's actually been consensus to change the behavior for for await
over sync iterators so that it closes them for... over a year now, I guess; it's blocked on lack of tests. Since this proposal uses the same machinery it will be affected as well.
for await
is known to not close sync iterables if rejected promise is emited. Likewhich of theses behaviors will implement Array.fromAsync?