123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::Promises::InternalStates::Fulfilled

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Concurrent::Promises::InternalStates::ResolvedWithResult
Defined in: lib/concurrent-ruby/concurrent/promises.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(value) ⇒ Fulfilled

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/promises.rb', line 399

def initialize(value)
  @Value = value
end

Instance Attribute Details

#fulfilled?Boolean (readonly)

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/promises.rb', line 403

def fulfilled?
  true
end

Instance Method Details

#apply(args, block)

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/promises.rb', line 407

def apply(args, block)
  block.call value, *args
end

#reason

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/promises.rb', line 415

def reason
  nil
end

#to_sym

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/promises.rb', line 419

def to_sym
  :fulfilled
end

#value

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/promises.rb', line 411

def value
  @Value
end