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

Fix the doc of Concurrent.available_processor_count #1059

Merged

Conversation

y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Aug 7, 2024

Currently, the doc says that this methods returns nil if there is no cpu_quota, but actually not.

This PR fixes the doc to match the behavior.

@eregon
Copy link
Collaborator

eregon commented Aug 8, 2024

cc @byroot

Currently, the doc says that this methods returns `nil` if there is
no cpu_quota, but actually not.
https://github.com/ruby-concurrency/concurrent-ruby/blob/6f7c91ab5a4e99d850f69c958572a536426277e8/lib/concurrent-ruby/concurrent/utility/processor_counter.rb#L30

This PR fixes the doc to match the behavior.

Co-authored-by: Benoit Daloze <eregontp@gmail.com>
@y-yagi y-yagi force-pushed the fix_doc_for_available_processor_count branch from cdcd44f to f8f3356 Compare August 8, 2024 23:12
@eregon eregon merged commit cbee215 into ruby-concurrency:master Aug 9, 2024
14 checks passed
@y-yagi y-yagi deleted the fix_doc_for_available_processor_count branch August 10, 2024 06:23
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.

3 participants