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