You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ruby is continuing its path of requiring more gems to be specified. win32ole is next on the list (among others) and will start warning in Ruby 3.4: ruby/ruby@f365bef
Usage is here, to get the number of cores on windows:
Something like the following may be a suitable replacement:
IO.popen("wmic cpu get NumberOfCores", &:read).scan(/\d+/).map(&:to_i).reduce(:+)
Output of that command: NumberOfCores \n\n4 \n\n\n\n
I have also openend the same report on concurrent-ruby at ruby-concurrency/concurrent-ruby#1048 if you are interested. Both implementations for this are basically the same.
The text was updated successfully, but these errors were encountered:
Ruby is continuing its path of requiring more gems to be specified.
win32ole
is next on the list (among others) and will start warning in Ruby 3.4: ruby/ruby@f365befUsage is here, to get the number of cores on windows:
parallel/lib/parallel.rb
Lines 331 to 336 in f66f105
Something like the following may be a suitable replacement:
Output of that command:
NumberOfCores \n\n4 \n\n\n\n
I have also openend the same report on
concurrent-ruby
at ruby-concurrency/concurrent-ruby#1048 if you are interested. Both implementations for this are basically the same.The text was updated successfully, but these errors were encountered: