Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
parallel_worker
master
ParallelWorker
Base
Fiber
FiberWorker
Process
ProcessWorker
Generated using Crystal 1.14.0
2024-12-05 19:00:16 UTC
class
ParallelWorker::
Base(X, T, R)
ParallelWorker::Base(X, T, R)
Reference
Object
Direct Known Subclasses
ParallelWorker::Fiber(T, R)
ParallelWorker::Process(T, R)
Defined in:
parallel_worker.cr
Constructors
.new
(num_workers : Int32, &block : T -> R)
Instance Method Summary
#perform
(job : T)
#perform_all
(jobs : Array(T))
Constructor Detail
def self.
new
(num_workers : Int32, &block : T -> R)
#
[
View source
]
Instance Method Detail
def
perform
(job : T)
#
[
View source
]
def
perform_all
(jobs : Array(T))
#
[
View source
]