1.0.0 • Published 6 years ago
promsleep v1.0.0
promsleep - Sleep as a promise
This is a small handy piece of code that implements sleep as a promise.
Example
Promise.resolve()
.then(out => promsleep(1000/*ms*/, out)
.then(out => {
/* out will be passed through promsleep */
})
1.0.0
6 years ago