123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::Promises::InternalStates::ResolvedWithResult

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

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#fulfilled?Boolean (readonly)

Raises:

  • (NotImplementedError)
[ GitHub ]

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

def fulfilled?
  raise NotImplementedError
end

#resolved?Boolean (readonly)

[ GitHub ]

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

def resolved?
  true
end

Instance Method Details

#apply

Raises:

  • (NotImplementedError)
[ GitHub ]

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

def apply
  raise NotImplementedError
end

#reason

Raises:

  • (NotImplementedError)
[ GitHub ]

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

def reason
  raise NotImplementedError
end

#result

[ GitHub ]

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

def result
  [fulfilled?, value, reason]
end

#to_sym

[ GitHub ]

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

def to_sym
  :resolved
end

#value

Raises:

  • (NotImplementedError)
[ GitHub ]

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

def value
  raise NotImplementedError
end