noqueue
v5.0.15
Published
not only Queue
Downloads
79
Maintainers
Readme
[n]OT [o]NLY Queue
noQueue is the package that extended loop and queue. It allowed you to write better code and give you more control. Instead of mess up everything by using setTimeout()
or setInterval()
, we offered a single instance of an Infinity Loop and Event Driven Pattern. Let's give it a try !!.
Installation
npm i noqueue
Required: Node.JS >= 10.x.x
note: This package was wrote in TypeScript and it support ECMAScript Modules that's why all examples are using import
, export
statement. If you are using CommonJS Modules, try require()
instead.
Components
For more detail please check our document: noQueue Document
- QueueLoop: Infinity loop with builtin queue to manage and execute jobs by sequence
- ParallelLoop: Infinity loop with parallel trigger mechanism
- Common: Common interface and data type
- Utilities:
- First: Invoke all jobs at once and take the result from the fastest response
- Fill: Awaiting for all jobs to be fulfilled, all result and error will be listed in array
- TillSuccess: Keep retries till the giving job is successful
- AwaitSleep: Just do nothing and wait for a moment
License
This package was licensed under MIT License
built with ❤️