Class: Contender::Future Abstract
- Inherits:
-
Object
- Object
- Contender::Future
- Defined in:
- lib/contender/future.rb
Overview
This class is abstract.
Direct Known Subclasses
Instance Method Summary collapse
-
#cancel(should_interrupt) ⇒ Boolean
abstract
True if this future was cancelled.
-
#cancelled? ⇒ Boolean
abstract
Returns true if this future was cancelled before it could complete.
-
#done? ⇒ Boolean
abstract
Returns true if this future was either cancelled or completed.
-
#result(timeout = nil) ⇒ Object
abstract
The result of the future.
Instance Method Details
#cancel(should_interrupt) ⇒ Boolean
This method is abstract.
Returns True if this future was cancelled.
7 8 9 |
# File 'lib/contender/future.rb', line 7 def cancel(should_interrupt) raise NotImplementedError end |
#cancelled? ⇒ Boolean
This method is abstract.
Returns true if this future was cancelled before it could complete
15 16 17 |
# File 'lib/contender/future.rb', line 15 def cancelled? raise NotImplementedError end |
#done? ⇒ Boolean
This method is abstract.
Returns true if this future was either cancelled or completed
23 24 25 |
# File 'lib/contender/future.rb', line 23 def done? raise NotImplementedError end |
#result(timeout = nil) ⇒ Object
This method is abstract.
Returns The result of the future.
33 34 35 |
# File 'lib/contender/future.rb', line 33 def result(timeout = nil) raise NotImplementedError end |