Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

then-sleep

meoguru6.7kMIT1.0.1

Promise-based sleeping.

sleep, promise

readme

then-sleep

Promise-based sleeping.

Installation

npm i then-sleep -S

Usage

var sleep = require('then-sleep');

// Sleep for 1 second and do something then.
sleep(1000).then(...);

License

MIT licensed.