Class: Concurrent::Promises::BlockedTaskPromise Abstract
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: | Concurrent::Promises::BlockedPromise |
Defined in: | lib/concurrent-ruby/concurrent/promises.rb |
Overview
This class is abstract.
Constant Summary
InternalStates
- Included
Class Attribute Summary
Synchronization::Object
- Inherited
Class Method Summary
- .new(delayed, blockers_count, default_executor, executor, args, &task) ⇒ BlockedTaskPromise constructor
BlockedPromise
- Inherited
AbstractPromise
- Inherited
Synchronization::Object
- Inherited
.atomic_attribute?, .atomic_attributes, | |
.attr_atomic | Creates methods for reading and writing to a instance variable with volatile (Java) semantic as |
.attr_volatile | Creates methods for reading and writing (as |
.ensure_safe_initialization_when_final_fields_are_present | For testing purposes, quite slow. |
.new | Has to be called by children. |
.safe_initialization!, .define_initialize_atomic_fields |
Synchronization::AbstractObject
- Inherited
Instance Method Summary
BlockedPromise
- Inherited
#blocked_by | for inspection only. |
#delayed_because, #on_blocker_resolution, #touch, #clear_and_propagate_touch, #on_resolvable, #process_on_blocker_resolution, #resolvable? |
AbstractPromise
- Inherited
#default_executor, #delayed_because, | |
#event | Alias for AbstractPromise#future. |
#future, | |
#inspect | Alias for AbstractPromise#to_s. |
#state, #to_s, #touch, #evaluate_to, #resolve_with |
Synchronization::Object
- Inherited
Synchronization::Volatile
- Included
Synchronization::AbstractObject
- Inherited
Constructor Details
.new(delayed, blockers_count, default_executor, executor, args, &task) ⇒ BlockedTaskPromise
# File 'lib/concurrent-ruby/concurrent/promises.rb', line 1717
def initialize(delayed, blockers_count, default_executor, executor, args, &task) raise ArgumentError, 'no block given' unless block_given? super delayed, 1, Future.new(self, default_executor) @Executor = executor @Task = task @Args = args end
Instance Method Details
#executor
[ GitHub ]# File 'lib/concurrent-ruby/concurrent/promises.rb', line 1725
def executor @Executor end