(
()=>{
"use strict";
const p1 = Promise.reject("Murych boh");
const runPromise = async () => {
await Promise.all([p1]);
return "Hmurych";
}
runPromise()
.then( (res)=>console.log("res: ", res))
.catch((rej)=>console.log("rej: ", rej));
}
)();
обьясните почему