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

(u)pmap blocks when the pool size is 0 #69

Open
jumarko opened this issue Jan 19, 2024 · 0 comments
Open

(u)pmap blocks when the pool size is 0 #69

jumarko opened this issue Jan 19, 2024 · 0 comments

Comments

@jumarko
Copy link

jumarko commented Jan 19, 2024

I'm wondering if there's any rationale for accepting 0 as pool size.
I've found this basically blocks forever (claypoole version 1.1.4).

(cp/upmap 0 (constantly 1) [])

As you may have guessed, I didn't want to actually pass 0 as thread pool size - it was a bug in my code.
But I would prefer if claypoole functions would throw instead of silently blocking the current thread.

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

No branches or pull requests

1 participant