Class: Cql::FailedFuture

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(error) ⇒ FailedFuture

Returns a new instance of FailedFuture.



462
463
464
465
466
# File 'lib/cql/future.rb', line 462

def initialize(error)
  super()
  @error = error
  @failed = true
end