class ActiveRecord::FutureResult::Complete
Attributes
result[R]
Public Class Methods
new(result)
click to toggle source
# File lib/active_record/future_result.rb, line 9 def initialize(result) @result = result end
Public Instance Methods
canceled?()
click to toggle source
# File lib/active_record/future_result.rb, line 17 def canceled? false end
pending?()
click to toggle source
# File lib/active_record/future_result.rb, line 13 def pending? false end
then(&block)
click to toggle source
# File lib/active_record/future_result.rb, line 21 def then(&block) Promise::Complete.new(@result.then(&block)) end