module Concurrent::Promises::FactoryMethods

def rejected_future(reason, default_executor = self.default_executor)

Returns:
  • (Future) -

Parameters:
  • reason (Object) --
def rejected_future(reason, default_executor = self.default_executor)
  resolved_future false, nil, reason, default_executor
end