Class: Celluloid::Future::Result
- Inherits:
-
Object
- Object
- Celluloid::Future::Result
- Defined in:
- lib/celluloid/future.rb
Overview
Wrapper for result values to distinguish them in mailboxes
Instance Attribute Summary collapse
-
#future ⇒ Object
readonly
Returns the value of attribute future.
Instance Method Summary collapse
-
#initialize(result, future) ⇒ Result
constructor
A new instance of Result.
- #value ⇒ Object
Constructor Details
#initialize(result, future) ⇒ Result
Returns a new instance of Result.
134 135 136 137 |
# File 'lib/celluloid/future.rb', line 134 def initialize(result, future) @result = result @future = future end |
Instance Attribute Details
#future ⇒ Object (readonly)
Returns the value of attribute future.
132 133 134 |
# File 'lib/celluloid/future.rb', line 132 def future @future end |
Instance Method Details
#value ⇒ Object
139 140 141 |
# File 'lib/celluloid/future.rb', line 139 def value @result.value end |