šŸŽ© You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP →
Sign In

p-limit

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-limit - npm Package Compare versions

Comparing version
7.3.0
to
7.3.1
+1
-1
index.d.ts

@@ -20,3 +20,3 @@ export type LimitFunction = {

This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app.
This might be useful if you want to tear down the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app.

@@ -23,0 +23,0 @@ Note: This does not cancel promises that are already running.

@@ -108,3 +108,3 @@ import Queue from 'yocto-queue';

async value(iterable, function_) {
const promises = Array.from(iterable, (value, index) => this(function_, value, index));
const promises = Array.from(iterable, (value, index) => generator(function_, value, index));
return Promise.all(promises);

@@ -111,0 +111,0 @@ },

{
"name": "p-limit",
"version": "7.3.0",
"version": "7.3.1",
"description": "Run multiple promise-returning & async functions with limited concurrency",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -100,3 +100,3 @@ # p-limit

This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app.
This might be useful if you want to tear down the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app.

@@ -103,0 +103,0 @@ Note: This does not cancel promises that are already running.