Yes of course, I was responding to your proposal and the subsequent email
about it being incompatible with existing JavaScript because "await" on its
own accepts non-promises, so wouldn't return an array of results from an
array of promises, hence why I proposed await.all etc.

On Thu, 21 Nov 2019 at 18:29, manuelbarzi <manuelba...@gmail.com> wrote:

> I have a solution for that:
>>
>> const promises = [...]
>> await.all promises //returns an array of results
>> await.race promises //returns a single result
>>
>
> well, my proposal is exactly that, but doing `await.all` by default with
> just `await`.
>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to