Closed zloirock closed 3 years ago
Thank you for catching this; this is a good point.
I agree that the mapper function should be considered as an async function and its results should be awaited, in order to match iterator-helpers’ behavior. I will change this later if there are no objections from anyone else. CC: @codehag
Now, in the spec draft we have:
However, in related methods of iterator helpers proposal, we await the result of the mapper:
It should be consistent.