Method: Cuboid::System::Platforms::Base#cpu_count

Defined in:
lib/cuboid/system/platforms.rb

#cpu_countInteger

Returns Amount of CPU cores.

Returns:

  • (Integer)

    Amount of CPU cores.



67
68
69
# File 'lib/cuboid/system/platforms.rb', line 67

def cpu_count
    Concurrent.processor_count
end