Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async concurrency limiter #31

Merged
merged 4 commits into from
Nov 25, 2024
Merged

Async concurrency limiter #31

merged 4 commits into from
Nov 25, 2024

Conversation

nitely
Copy link
Owner

@nitely nitely commented Nov 25, 2024

usage:

let lt = newLimiter(100)
while someCond:
  await lt.spawn myFut
await lt.join()

to-do maybe implement spawnCheck:

let lt = newLimiter(int.high)
while someCond:
  lt.spawnCheck myFut
await lt.join()

@nitely nitely merged commit 45a8d5e into master Nov 25, 2024
1 check passed
@nitely nitely deleted the limiter branch November 25, 2024 20:01
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.

1 participant