Class: Async::Container::Forked
- Defined in:
- lib/async/container/forked.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Generic
Instance Attribute Summary
Attributes inherited from Generic
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Generic
#[], #async, #failed?, #initialize, #key?, #mark?, #reload, run, #run, #running?, #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
30 31 32 |
# File 'lib/async/container/forked.rb', line 30 def self.multiprocess? true end |
Instance Method Details
#start(name, &block) ⇒ Object
34 35 36 |
# File 'lib/async/container/forked.rb', line 34 def start(name, &block) Process.fork(name: name, &block) end |