module Futuroscope
Constants
- VERSION
Public Class Methods
default_pool()
click to toggle source
Gets the default futuroscope's pool.
Returns a Pool
# File lib/futuroscope.rb, line 10 def self.default_pool @default_pool ||= Pool.new end
default_pool=(pool)
click to toggle source
Sets a new default pool. It's useful when you want to set a different number of concurrent threads.
Example:
Futuroscope.default_pool = Futuroscope::Pool.new(24)
# File lib/futuroscope.rb, line 20 def self.default_pool=(pool) @default_pool = pool end