Method: FTW::Pool#initialize

Defined in:
lib/ftw/pool.rb

#initializePool

Returns a new instance of Pool.



11
12
13
14
15
# File 'lib/ftw/pool.rb', line 11

def initialize
  # Pool is a hash of arrays.
  @pool = Hash.new { |h,k| h[k] = Array.new }
  @lock = Mutex.new
end