Class: Pantry::Communication::WaitList::FutureResultWrapper
- Inherits:
-
Struct
- Object
- Struct
- Pantry::Communication::WaitList::FutureResultWrapper
- Defined in:
- lib/pantry/communication/wait_list.rb
Overview
Internal to Celluloid::Future, using #signal ends up in a Result object in which calling #value then calls #value on the saved data which in our case is Message. We just want the Message so wrap up our messages in this object to work around this oddity.
github.com/celluloid/celluloid/blob/master/lib/celluloid/future.rb#L89
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value
34 35 36 |
# File 'lib/pantry/communication/wait_list.rb', line 34 def value @value end |