1
Watch
3
Star
0
Fork
0
Issue
alsotang
alsotang
pushedAt 4 weeks ago

alsotang/ko-sleep

ko-sleep

Build Status

A promise wrapper for setTimeout

usage

sleep(time: number | string): Promise<void>

time - millisecond number, or '1s' which https://www.npmjs.com/package/ms support

example

import sleep from 'ko-sleep'

await sleep(3 * 1000)
await sleep('3s')

license

MIT

ucloud ads