0.0.3 • Published 4 years ago

simple-delay v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Simple Delay

Create a promise that resolves after a certain amount of time

Usages

Basic

import delay from 'simple-delay'
delay(5000).then(() => console.log('5 seconds have passed'))

Supply your own setTimeout

import { callSetTimeout } from 'simple-delay'
const mySetTimeout = setTimeout
callSetTimeout(mySetTimeout, 5000).then(() => console.log('5 seconds have passed'))

License

MIT © Hoàng Văn Khải

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago