class Herd::Cluster
- Herd::Cluster
- Reference
- Object
Defined in:
herd/cluster.crConstructors
-
.new(threads : Int32)
Create the cluster
Class Method Summary
-
.thread
Return the current thread
Instance Method Summary
-
#execute(&block)
Specify a block to execute
@threads
times -
#fork(env : Hash)
Fork the current process
-
#is_master
Check if the current process is the master
-
#is_slave
Check if the current process is a slave