Skip to content

feat: support for throttleAsync function - #1914

Open
hazrid93 wants to merge 1 commit into
toss:mainfrom
hazrid93:hazrid93/40_976
Open

feat: support for throttleAsync function#1914
hazrid93 wants to merge 1 commit into
toss:mainfrom
hazrid93:hazrid93/40_976

Conversation

@hazrid93

Copy link
Copy Markdown

Closes #976.

Add throttleAsync(func, {signal}) that only allows a new invocation when the previous one has completed. While a call is in flight, further calls resolve to null immediately (dropped, classic async throttle cooldown). Returns the in flight Promise for the running call.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
es-toolkit Ready Ready Preview, Comment Jul 20, 2026 11:14am

Request Review

Closes toss#976.

Add throttleAsync(func, {signal}) that only allows a new invocation when the previous one has completed. While a call is in flight, further calls resolve to null immediately (dropped, classic async throttle cooldown). Returns the in flight Promise for the running call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for throttleAsync function

1 participant