qqueue
v0.1.2
Published
```sh yarn add qqueue ```
Downloads
3
Readme
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