sleep2

1.0.0 • Public • Published

sleep2

Aysnc sleep, can be used on ES6+ (async/await)

install

npm install sleep2

sample

const sleep = require('sleep2');

(async () => {
  console.log('begin');
  await sleep(3000);
  console.log('end');
})();

Readme

Keywords

Package Sidebar

Install

npm i sleep2

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • shenyu1997