Class: Async::Container::Forked
- Defined in:
- lib/async/container/forked.rb
Overview
A multi-process container which uses Process.fork.
Direct Known Subclasses
Defined Under Namespace
Classes: Child
Constant Summary
Constants inherited from Generic
Instance Attribute Summary
Attributes inherited from Generic
#The group of running children instances., #group, #state, #statistics
Class Method Summary collapse
-
.multiprocess? ⇒ Boolean
Indicates that this is a multi-process container.
Instance Method Summary collapse
-
#start(name, &block) ⇒ Object
Start a named child process and execute the provided block in it.
Methods inherited from Generic
#The state of each child instance.=, #[], #async, #failed?, #initialize, #key?, #mark?, #reload, run, #run, #running?, #size, #sleep, #spawn, #status?, #stop, #to_s, #wait, #wait_until_ready
Constructor Details
This class inherits a constructor from Async::Container::Generic
Class Method Details
.multiprocess? ⇒ Boolean
Indicates that this is a multi-process container.
17 18 19 |
# File 'lib/async/container/forked.rb', line 17 def self.multiprocess? true end |