class Forked
A multi-process container which uses Process.fork.
Nested
Definitions
def self.multiprocess?
Indicates that this is a multi-process container.
Implementation
def self.multiprocess?
true
end
def start(name, &block)
Start a named child process and execute the provided block in it.
Signature
-
parameter
nameString The name (title) of the child process.
-
parameter
blockProc The block to execute in the child process.
Implementation
def start(name, &block)
Child.fork(name: name, &block)
end