跳至内容 跳至搜索
方法
C
N
P
T

属性

[R] result

类公共方法

new(result)

# File activerecord/lib/active_record/future_result.rb, line 9
def initialize(result)
  @result = result
end

实例公共方法

canceled?()

# File activerecord/lib/active_record/future_result.rb, line 17
def canceled?
  false
end

pending?()

# File activerecord/lib/active_record/future_result.rb, line 13
def pending?
  false
end

then(&block)

# File activerecord/lib/active_record/future_result.rb, line 21
def then(&block)
  Promise::Complete.new(@result.then(&block))
end