promsleep

1.0.0 • Public • Published

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 */
}) 

Readme

Keywords

Package Sidebar

Install

npm i promsleep

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.81 kB

Total Files

4

Last publish

Collaborators

  • xurei