|
|
il y a 2 ans | |
|---|---|---|
| .. | ||
| dist | il y a 2 ans | |
| LICENSE | il y a 2 ans | |
| README.md | il y a 2 ans | |
| package.json | il y a 2 ans | |
A promise wrapper for setTimeout
sleep(time: number | string): Promise<void>
time - millisecond number, or '1s' which https://www.npmjs.com/package/ms support
import sleep from 'ko-sleep'
await sleep(3 * 1000)
await sleep('3s')
MIT