Methods

Attributes

[R] result

Class Public methods

new(result)

📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 9
      def initialize(result)
        @result = result
      end
🔎 See on GitHub

Instance Public methods

canceled?()

📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 17
      def canceled?
        false
      end
🔎 See on GitHub

pending?()

📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 13
      def pending?
        false
      end
🔎 See on GitHub

then(&block)

📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 21
      def then(&block)
        Promise::Complete.new(@result.then(&block))
      end
🔎 See on GitHub