1.0.3 • Published 5 years ago
@chengaoyuan/sleep v1.0.3
sleep
Installation
$ npm install @chengaoyuan/sleep
Usage
import sleep from "@chengaoyuan/sleep";
async function func() {
console.log(Date.now());
await sleep(1000); // sleep 1s
console.log(Date.now());
}
func();
Testing
$ npm test