1.0.2 • Published 4 years ago

queue-i-promised v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Promised queue

Simple asynchronous Javascript / Typescript queue with repetition check for social-media like actions (liking, subscribing...)

Installation

npm install queue-i-promised --save

Usage

import { PromisedQueue, RepetitionPromisedQueue } from "queue-i-promised";

const pq = new PromiseQueue();
const rpq = new RepetitionPromisedQueue(2);

pq.enqueue(async () => { await longRunningJob(); });
rqp.enqueue(async () => { await longRunningJob(); });

For better understanding check test.js file in /test folder.

Test

npm run test

Build

npm run build
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago