Class: Cql::ResolvedFuture

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

Instance Method Summary collapse

Methods inherited from Future

#completed?, #failed?, #resolved?, #value

Methods included from FutureFactories

#all, #failed, #first, #resolved

Methods included from FutureCallbacks

#on_complete, #on_failure, #on_value

Methods included from FutureCombinators

#fallback, #flat_map, #map, #recover

Constructor Details

#initialize(value = nil) ⇒ ResolvedFuture

Returns a new instance of ResolvedFuture.



453
454
455
456
457
# File 'lib/cql/future.rb', line 453

def initialize(value=nil)
  super()
  @value = value
  @resolved = true
end