0.0.6 • Published 1 month ago

@winglibs/fifoqueue v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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.

0.0.6

1 month ago

0.0.5

2 months ago

0.0.4

2 months ago

0.0.3

3 months ago

0.0.2

4 months ago

0.0.1

5 months ago