Class: Async::Runnner
- Inherits:
-
Object
- Object
- Async::Runnner
- Defined in:
- lib/async/runner.rb
Overview
Provides a common interface for performing asynchronous actions via a number of strategies
Defined Under Namespace
Modules: Strategy
Instance Method Summary collapse
-
#initialize(strategy = :thread) ⇒ Runnner
constructor
A new instance of Runnner.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
17 18 19 |
# File 'lib/async/runner.rb', line 17 def run @strategy.spawn &Proc.new end |