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

batch-queue

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

batch-queue - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

2

index.js

@@ -63,2 +63,4 @@ module.exports = Batch

}
return !!this.jobs.length
}

2

package.json
{
"name": "batch-queue",
"version": "0.0.0",
"version": "0.0.1",
"description": "queue actions to be run in batches",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -41,2 +41,5 @@ batch-queue

### batch.add(fn) -> fn
works like a debaunce. batch.add will return a new function, when this function is called it will queue the original function to be called with the passed arguments and context. calling this function multiple times will result in the function only running once when the batch executes with the last set of arguments passed.
works like a debaunce. batch.add will return a new function, when this function is called it will queue the original function to be called with the passed arguments and context. calling this function multiple times will result in the function only running once when the batch executes with the last set of arguments passed.
### batch.run() -> boolean
runs any queued jobs, returns `true` if any jobs were run, otherwise returns `false`
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