class Async::Container::Forked
A multi-process container which uses {Process.fork}.
Public Class Methods
multiprocess?()
click to toggle source
Indicates that this is a multi-process container.
# File lib/async/container/forked.rb, line 31 def self.multiprocess? true end
Public Instance Methods
start(name, &block)
click to toggle source
Start a named child process and execute the provided block in it. @parameter name [String] The name (title) of the child process. @parameter block [Proc] The block to execute in the child process.
# File lib/async/container/forked.rb, line 38 def start(name, &block) Process.fork(name: name, &block) end