Awaiting block expression

Tobias Buschor tobias.buschor at
Fri Jun 21 06:41:51 UTC 2019

 As there are more and more async apis, i would like to have a block, where
all promises within automaticly are awaited:


const image = await {
    const user = fetch('/user/'+id).json();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list