Module: Async::Runnner::Strategy
- Defined in:
- lib/async/runner.rb
Defined Under Namespace
Classes: Base, Fork, Synchronous, Thread
Class Method Summary collapse
Class Method Details
.create(sym) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/async/runner.rb', line 22 def self.create(sym) case when :thread then Strategy::Thread when :fork then Strategy::Fork when :synchronous then Strategy::Synchronous end end |