0.0.0 • Published 1 year ago
@nichoth/sleep v0.0.0
sleep
Wait for a given number of milliseconds, with promises.
install
npm i -S @nichoth/sleep
example
import { sleep } from '@nichoth/sleep'
await sleep(1000) // wait 1 second
0.0.0
1 year ago
Wait for a given number of milliseconds, with promises.
npm i -S @nichoth/sleep
import { sleep } from '@nichoth/sleep'
await sleep(1000) // wait 1 second
1 year ago