Module: Concurrent::ExecutorService
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
AbstractExecutorService ,
ImmediateExecutor ,
IndirectImmediateExecutor ,
JavaExecutorService ,
JavaSingleThreadExecutor ,
JavaThreadPoolExecutor ,
RubyExecutorService ,
RubySingleThreadExecutor ,
RubyThreadPoolExecutor ,
SerialExecutorService ,
SerializedExecutionDelegator ,
SimpleExecutorService ,
Throttle::ProxyExecutor ,
TimerSet ,
TimerTask ,
WrappingExecutor
| |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
Concern::Logging
|
|
Defined in: | lib/concurrent-ruby/concurrent/executor/executor_service.rb |
Constant Summary
Concern::Logging
- Included
Instance Attribute Summary
-
#can_overflow? ⇒ Boolean
readonly
Does the task queue have a maximum size?
-
#serialized? ⇒ Boolean
readonly
Does this executor guarantee serialization of its operations?
Instance Method Summary
-
#<<(task) ⇒ self
Submit a task to the executor for asynchronous processing.
-
#post(*args) { ... } ⇒ Boolean
Submit a task to the executor for asynchronous processing.
Concern::Logging
- Included
#log | Logs through global_logger, it can be overridden by setting @logger. |
Instance Attribute Details
#can_overflow? ⇒ Boolean
(readonly)
Note:
Always returns false
Does the task queue have a maximum size?
# File 'lib/concurrent-ruby/concurrent/executor/executor_service.rb', line 174
module ExecutorService include Concern::Logging # @!macro executor_service_method_post def post(*args, &task) raise NotImplementedError end # @!macro executor_service_method_left_shift def <<(task) post(&task) self end # @!macro executor_service_method_can_overflow_question # # @note Always returns `false` def can_overflow? false end # @!macro executor_service_method_serialized_question # # @note Always returns `false` def serialized? false end end
#serialized? ⇒ Boolean
(readonly)
Note:
Always returns false
Does this executor guarantee serialization of its operations?
# File 'lib/concurrent-ruby/concurrent/executor/executor_service.rb', line 181
module ExecutorService include Concern::Logging # @!macro executor_service_method_post def post(*args, &task) raise NotImplementedError end # @!macro executor_service_method_left_shift def <<(task) post(&task) self end # @!macro executor_service_method_can_overflow_question # # @note Always returns `false` def can_overflow? false end # @!macro executor_service_method_serialized_question # # @note Always returns `false` def serialized? false end end
Instance Method Details
#<<(task) ⇒ self
Submit a task to the executor for asynchronous processing.
# File 'lib/concurrent-ruby/concurrent/executor/executor_service.rb', line 166
module ExecutorService include Concern::Logging # @!macro executor_service_method_post def post(*args, &task) raise NotImplementedError end # @!macro executor_service_method_left_shift def <<(task) post(&task) self end # @!macro executor_service_method_can_overflow_question # # @note Always returns `false` def can_overflow? false end # @!macro executor_service_method_serialized_question # # @note Always returns `false` def serialized? false end end
#post(*args) { ... } ⇒ Boolean
Submit a task to the executor for asynchronous processing.
# File 'lib/concurrent-ruby/concurrent/executor/executor_service.rb', line 161
module ExecutorService include Concern::Logging # @!macro executor_service_method_post def post(*args, &task) raise NotImplementedError end # @!macro executor_service_method_left_shift def <<(task) post(&task) self end # @!macro executor_service_method_can_overflow_question # # @note Always returns `false` def can_overflow? false end # @!macro executor_service_method_serialized_question # # @note Always returns `false` def serialized? false end end