lib/polyphony/core/resource_pool.rb
# Creates a resource, adding it to the stock.
#
# @return [any] allocated resource
Creates a resource, adding it to the stock.
Creates a resource adding it to the stock .
def add_to_stock
      @size += 1
      resource = @allocator.call
      @stock << resource
    end
def add_to_stock @size += 1 resource = @allocator . call @stock << resource end
Creates a resource, adding it to the stock.
Creates a resource adding it to the stock .
None
any