setTimeout
awaitできるsetTimeoutを1行で書く方法 - Qiita
javascript - Combination of async function + await + setTimeout - Stack Overflow
setTimeout is not an async function, so you can't use it with ES7 async-await. But you could implement your sleep function using ES6
Javascript Promise
:
Exploring Async/Await Functions in JavaScript ← Alligator.io
学習に
#JavaScript