class WorkerPool
- WorkerPool
 - Reference
 - Object
 
Overview
a pool of fibers ready to execute tasks there is no bound on growth so long running tasks like websockets can run without starving other tasks. The aim of this pool is to reduce the impact of fiber allocation to a typical workload
Defined in:
worker_pool.crConstant Summary
- 
        Log = 
::Log.for(self) - 
        VERSION = 
"2.0.3" 
Constructors
Instance Method Summary
- 
        #available
        
          
number of workers waiting to be allocated work
 - 
        #close
        
          
fibers are discarded once they complete and no new work will be accepted
 - 
        #finalize
        
          
ensure the fibers complete if the pool goes out of scope
 - #initial_size : Int32
 - 
        #perform(&block : Proc(Nil))
        
          
perform a task using the pool
 - 
        #running?
        
          
is the fiber pool running
 - 
        #size : Int32
        
          
number of fibers in the pool