@winglibs/fifoqueue
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

fifoqueue

A wing library to work with FIFO (first-in first-out) Queues.

To use the queue, set groupId to group messages and process them in an ordered fashion.

Prerequisites

Installation

npm i @winglibs/fifoqueue

Usage

bring fifoqueue;

let queue = new fifoqueue.FifoQueue();

queue.setConsumer(inflight (message: str) => {
  log("recieved message {message}");
});

test "will push to queue" {
  queue.push("a new message", groupId: "myGroup");
}

License

This library is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @winglibs/fifoqueue

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

29.7 kB

Total Files

33

Last publish

Collaborators

  • monabot