Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

pikax/gin-queue

Repository files navigation

gin-queue

Interval and Concurrent (using promise-queue) implementation.

Usage

const ginQueue = require("gin-queue")
//or
import {QInterval, QConcurrent} from 'gin-queue';

Interval

Implements queue that only dequeue after a set amount of time.

const interval = 5000;
const q = new QInterval({interval});

q.queue(request());

const result = await q.queue(()=>request()); // it will only run 5 seconds after the previous started

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published