class Async::Container::Threaded
A multi-thread container which uses {Thread.fork}.
Public Class Methods
multiprocess?()
click to toggle source
Indicates that this is not a multi-process container.
# File lib/async/container/threaded.rb, line 31 def self.multiprocess? false end
Public Instance Methods
start(name, &block)
click to toggle source
Start a named child thread 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/threaded.rb, line 38 def start(name, &block) Thread.fork(name: name, &block) end