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.
- #resume ⇒ Object
Constructor Details
#initialize(task) ⇒ Later
Returns a new instance of Later.
33 34 35 |
# File 'lib/async/task.rb', line 33 def initialize(task) @task = task end |
Instance Method Details
#alive? ⇒ Boolean
37 38 39 |
# File 'lib/async/task.rb', line 37 def alive? true end |
#resume ⇒ Object
41 42 43 |
# File 'lib/async/task.rb', line 41 def resume @task.stop end |