Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
parallel_worker
master
ParallelWorker
Base
Fiber
FiberWorker
Process
ProcessWorker
Built with Crystal 1.9.2
2023-10-08 13:51:36 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
]