ProjectSource

Async::Container::Threaded

A multi-thread container which uses Async::Container::Thread.fork.

Definitions

def self.multiprocess?

Indicates that this is not a multi-process container.

Implementation

def self.multiprocess?
	false
end

def start(name, &block)

Start a named child thread 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)
	Thread.fork(name: name, &block)
end