1.0.0 • Published 8 years ago
es7-sleep v1.0.0
es7-sleep
ES7 sleep function with async/await
Install
npm install es7-sleep
Usage
import sleep from "es7-sleep";
async () => {
...
while(!result) {
await sleep(1000);
result = redis.get(key);
}
...
}
License
MIT
1.0.0
8 years ago