0.1.2 • Published 4 years ago

qqueue v0.1.2

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

Install

yarn add qqueue

Usage

import qqueue from 'qqueue';
import waait from 'waait';

waait(3000).then(() => {
  console.log(1);
});

waait(1000).then(() => {
  console.log(2);
});
/* 
output
2
1
*/

/* with qqueue */
qqueue
  .push(() => waait(3000))
  .then(() => {
    console.log(1);
  });

qqueue
  .push(() => waait(1000))
  .then(() => {
    console.log(2);
  });
/* 
output
1
2
*/

Author

👤 yasintz

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator