Class: Async::Stop::Later
- Inherits:
-
Object
- Object
- Async::Stop::Later
- Defined in:
- lib/async/task.rb
Instance Method Summary collapse
- #alive? ⇒ Boolean
-
#initialize(task) ⇒ Later
constructor
A new instance of Later.
- #transfer ⇒ Object
Constructor Details
#initialize(task) ⇒ Later
Returns a new instance of Later.
18 19 20 |
# File 'lib/async/task.rb', line 18 def initialize(task) @task = task end |
Instance Method Details
#alive? ⇒ Boolean
22 23 24 |
# File 'lib/async/task.rb', line 22 def alive? true end |
#transfer ⇒ Object
26 27 28 |
# File 'lib/async/task.rb', line 26 def transfer @task.stop end |