IAggregatePool.get

Takes an idle item from the pool or creates a new one if all item are busy or the pool is empty.

  1. ItemType get(ItemType new_item)
    class IAggregatePool(T)
    get
    out (item) { assert (item !is null); }
  2. ItemType get()

Parameters

new_item ItemType

expression that creates a new instance of T

Return Value

Type: ItemType

pool item

Throws

LimitExceededException if limitation is enabled and all pool items are busy.

Meta