Quick tip: the async/await version of Promise.all:
asyncfunctionmain(){// NO! You're wait for one at a time, which isn't goodletthemes=awaitgetThemes()letcontent=awaitgetContent()// YES! You wait for both at the same timeletthemesPromise=getThemes()// this doesn't block anythingletcontentPromise=getContent()// this eitherlet[themes,content]=[awaitthemesPromise,awaitcontentPromise]}main()
Quick tip: the
async/await
version ofPromise.all
:can't get you...