Class: Concurrent::Promises::InternalStates::Fulfilled
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ResolvedWithResult ,
State
|
|
Instance Chain:
self,
ResolvedWithResult ,
State
|
|
Inherits: |
Concurrent::Promises::InternalStates::ResolvedWithResult
|
Defined in: | lib/concurrent-ruby/concurrent/promises.rb |
Class Method Summary
- .new(value) ⇒ Fulfilled constructor
Instance Attribute Summary
Instance Method Summary
ResolvedWithResult
- Inherited
State
- Inherited
Constructor Details
.new(value) ⇒ Fulfilled
# 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