yambejp2020/07/14 05:51sample (async()=>{ console.log("start"); await new Promise(resolve=>setTimeout(()=>(console.log(1),resolve(2)),1000)).then(res=>console.log(res)); await new Promise(resolve=>setTimeout(()=>console.log(3),1000)).then(res=>console.log(4)); console.log("end"); })(); 2つめのpromiseがリゾルバを実行しないので、いつまでたっても thenに流れず、endになりません
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/07/14 05:46
2020/07/14 05:51