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

in-parallel

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

in-parallel - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

3

index.js

@@ -24,3 +24,3 @@ function isFunction(functionToCheck) {

for each parallel action to call when it finishes with an element*/
var proceedAfterInParallelAction = function() {
collection.proceedAfterInParallelAction = function() {
numElementsCompleted++;

@@ -30,2 +30,3 @@

if(numElementsCompleted == numElements) {
delete collection.proceedAfterInParallelAction;
//run the onFinish function

@@ -32,0 +33,0 @@ onFinish();

{
"name": "in-parallel",
"version": "0.8.0",
"version": "0.9.0",
"description": "A small library for Runs a function on the elements of the provided collection in parallel ",

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

@@ -19,3 +19,3 @@ # in-parallel

element++;
this.proceedAfterParallelAction();
collection.proceedAfterInParallelAction();
}, function(){

@@ -37,3 +37,3 @@ collection.push(5);

//call the provided proceed method after this user is done
this.proceedAfterInParallelAction();
collection.proceedAfterInParallelAction();
} else {

@@ -44,3 +44,3 @@ //find succeeded

//call the provided proceed method after this user is done
this.proceedAfterInParallelAction();
collection.proceedAfterInParallelAction();
}

@@ -47,0 +47,0 @@ });

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