Module: Concurrent::Options
| Relationships & Source Files | |
| Defined in: | lib/concurrent-ruby/concurrent/options.rb | 
Class Method Summary
- .executor(executor_identifier)
- 
    
      .executor_from_options(opts = {})  ⇒ Executor? 
    
    private
    Internal use only
    Get the requested Executorbased on the values set in the options hash.
Class Method Details
.executor(executor_identifier)
[ GitHub ]# File 'lib/concurrent-ruby/concurrent/options.rb', line 27
def self.executor(executor_identifier) case executor_identifier when :fast Concurrent.global_fast_executor when :io Concurrent.global_io_executor when :immediate Concurrent.global_immediate_executor when Concurrent::ExecutorService executor_identifier else raise ArgumentError, "executor not recognized by '#{executor_identifier}'" end end
    .executor_from_options(opts = {})  ⇒ Executor?  (private)
  
  
    This method is for internal use only.
  
Get the requested Executor based on the values set in the options hash.