Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored Dec 19, 2024
1 parent 7c87383 commit b7d0472
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ export type Options = {
};

/**
Return a function with limited concurrency.
Returns a function with limited concurrency.
You can call this function multiple times, and it will manage the concurrency of its own calls.
The returned function manages its own concurrent executions, allowing you to call it multiple times without exceeding the specified concurrency limit.
This function is useful when you need to limit the number of concurrent executions of a specific function, rather than managing concurrency for multiple different functions.
Ideal for scenarios where you need to control the number of simultaneous executions of a single function, rather than managing concurrency across multiple functions.
@param function_ - Promise-returning/async function.
@return Function with limited concurrency.
Expand Down

0 comments on commit b7d0472

Please sign in to comment.