tobias.buschor at shwups.ch (2019-06-21T06:46:30.202Z)
As there are more and more async apis, i would like to have a block, where
all promises within automaticly are awaited:
Proposal:
const image = await {
const user = fetch('/user/'+id).json();
fetch('/image/'+user.image).json();
}
As there are more and more async apis, i would like to have a block, where all promises within automaticly are awaited: Proposal: const image = await { const user = fetch('/user/'+id).json(); fetch('/image/'+user.image).json(); } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190621/005bc565/attachment.html>