Class: Celluloid::Future::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/celluloid/future.rb

Overview

Wrapper for result values to distinguish them in mailboxes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result, future) ⇒ Result

Returns a new instance of Result.


136
137
138
139
# File 'lib/celluloid/future.rb', line 136

def initialize(result, future)
  @result = result
  @future = future
end

Instance Attribute Details

#futureObject (readonly)

Returns the value of attribute future


134
135
136
# File 'lib/celluloid/future.rb', line 134

def future
  @future
end

Instance Method Details

#valueObject


141
142
143
# File 'lib/celluloid/future.rb', line 141

def value
  @result.value
end