GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix the doc of `Concurrent.available_processor_count` by y-yagi · Pull Request #1059 · ruby-concurrency/concurrent-ruby

Conversation

@y-yagi

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

Copy link
Copy Markdown
Contributor

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

concurrent-ruby/lib/concurrent-ruby/concurrent/utility/processor_counter.rb

Line 30 in 6f7c91a

return cpu_count if quota.nil?

This PR fixes the doc to match the behavior.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
eregon
eregon reviewed Aug 8, 2024
View reviewed changes
Comment thread lib/concurrent-ruby/concurrent/utility/processor_counter.rb Resolved

Uh oh!

There was an error while loading. Please reload this page.

@eregon

eregon commented Aug 8, 2024

Copy link
Copy Markdown
Member

cc @byroot

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@y-yagi @eregon
Fix the doc of Concurrent.available_processor_count
f8f3356
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 <[email protected]>
@y-yagi
y-yagi force-pushed the fix_doc_for_available_processor_count branch from cdcd44f to f8f3356 Compare August 8, 2024 23:12
byroot
byroot approved these changes Aug 9, 2024
View reviewed changes
@eregon
eregon merged commit cbee215 into ruby-concurrency:master Aug 9, 2024
@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

Reviewers

@eregon eregon eregon left review comments
+1 more reviewer
@byroot byroot byroot approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@y-yagi @eregon @byroot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.