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

Concurrency page lists wrong default for ThreadPoolScheduler default threads #4524

Open
jmaslak opened this issue Oct 16, 2024 · 0 comments
Open
Labels
docs Documentation issue (primary issue type)

Comments

@jmaslak
Copy link
Contributor

jmaslak commented Oct 16, 2024

Problem or new feature

At least on my computer, ThreadPoolScheduler defaults to 64 threads:

$ raku -e 'say ThreadPoolScheduler.new.max_threads'
64

(The $*SCHEDULER instance also is set to 64 by default, with no environment set)

However, on https://docs.raku.org/language/concurrency , under ThreadPoolScheduler, it states that it is 16:

The [ThreadPoolScheduler](https://docs.raku.org/type/ThreadPoolScheduler) is the default scheduler, it maintains a pool of threads that are allocated on demand, creating new ones as necessary up to maximum number given as a parameter when the scheduler object was created (the default is 16.)

Suggestions

If 64 is what it always is, just change this, but if not, reflect reality. :)

@jmaslak jmaslak added the docs Documentation issue (primary issue type) label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type)
Projects
None yet
Development

No branches or pull requests

1 participant