@gogh/sleep
v1.0.3
Published
sleep for js
Downloads
1
Readme
模拟实现 PHP sleep()函数
依赖 es7 async / await 写法
For example:
import sleep from '@gogh/sleep'
console.log("st: ", new Date())
(async () => {
await sleep(3000)
console.log("ed: ", new Date())
})()