module Concurrent::Options
def self.executor_from_options(opts = {}) # :nodoc:
-
(Executor, nil)
- the requested thread pool, or nil when no option specified
Options Hash:
(**opts)
-
:executor
(Executor
) -- when set use the given `Executor` instance.
Parameters:
-
opts
(Hash
) -- the options defining the requested executor
def self.executor_from_options(opts = {}) # :nodoc: if identifier = opts.fetch(:executor, nil) executor(identifier) else nil end end