class WorkerPool
- WorkerPool
- Reference
- Object
Defined in:
worker_pool.crConstant Summary
-
Log =
::Log.for(self)
-
VERSION =
"1.0.0"
Constructors
Instance Method Summary
-
#available : Int32
number of fibers currently available
-
#finalize
ensure the fibers complete if the pool goes out of scope
-
#perform(&block : Proc(Nil))
perform a task using the pool
-
#running?
is the fiber pool running
-
#same_thread? : Bool
are fibers all running on the same thread?
-
#size : Int32
number of fibers in the pool
-
#stop
blocks until all the fibers complete if tracking
-
#tracking? : Bool
are we tracking fiber usage
-
#would_block?
is there an available fiber or would we block waiting for a fiber