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)
  2. ItemType get()
    class IAggregatePool(T)
    static if(is(typeof(new T)))
    get
    ()
    out (item) { assert (item !is null); }

Return Value

Type: ItemType

pool item

Throws

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

Meta