class ActiveRecord::FutureResult::Complete
Attributes
[R] | result |
Public class methods
Source code GitHub
# File activerecord/lib/active_record/future_result.rb, line 9
def initialize(result)
@result = result
end
Public instance methods
Source code GitHub
# File activerecord/lib/active_record/future_result.rb, line 17
def canceled?
false
end
Source code GitHub
# File activerecord/lib/active_record/future_result.rb, line 13
def pending?
false
end
Source code GitHub
# File activerecord/lib/active_record/future_result.rb, line 21
def then(&block)
Promise::Complete.new(@result.then(&block))
end