class AgentPool::AgentPool(T)
 
  - AgentPool::AgentPool(T)
- Reference
- Object
Defined in:
agent_pool/agent_pool.crConstructors
Instance Method Summary
- #checkout(index) : T
- #checkout(&block : T -> )
- 
        #close : Nil
        
          close all resources in the pool 
- #release(resource : T, index : String) : Nil
- 
        #stats
        
          Returns stats of the pool 
Constructor Detail
        
        def self.new(max_pool_size : Int32 = 0, max_idle_pool_size : Int32 = 1, checkout_timeout : Float64 = 5.0, retry_attempts : Int32 = 1, retry_delay : Float64 = 0.2, &factory : String -> T)
        #