Class: Pantry::Communication::WaitList::FutureResultWrapper

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



34
35
36
# File 'lib/pantry/communication/wait_list.rb', line 34

def value
  @value
end