Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

named-queue

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

named-queue

like async.queue, but you name the tasks so they're de-duplicated

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
98
increased by71.93%
Maintainers
1
Weekly downloads
 
Created
Source

named-queue

like async.queue, but tasks are named and de-duplicated

Init

var namedQueue = require('named-queue')

var queue = new namedQueue(processor, concurrency)

processor - function(task, cb)
concurrency - Number for maximum concurrent tasks; can be Infinity

Methods

WARNING All tasks must have an .id property used to identify and avoid doing the same task more than once at a time

queue.push(task, cb)

queue.unshift(task, cb)

queue.length()

Keywords

FAQs

Package last updated on 14 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc