Async::ContainerSourceAsyncContainerForked

class Forked

A multi-process container which uses Async::Container::Process.fork.

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 name String

The name (title) of the child process.

parameter block Proc

The block to execute in the child process.

Implementation

def start(name, &block)
	Process.fork(name: name, &block)
end