noqueue
TypeScript icon, indicating that this package has built-in type declarations

4.0.7 • Public • Published

[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 ❤️

Package Sidebar

Install

npm i noqueue

Weekly Downloads

228

Version

4.0.7

License

MIT

Unpacked Size

30.5 kB

Total Files

18

Last publish

Collaborators

  • chiro-hiro