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();
}
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

