Class: Cql::ResolvedFuture
Instance Method Summary collapse
-
#initialize(value = nil) ⇒ ResolvedFuture
constructor
A new instance of ResolvedFuture.
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 |