Delegates to +Parallel#map+ from the parallel gem.
# File lib/openshift-origin-node/utils/threads.rb, line 17 def self.map(*args, &block) parent = Thread.current ::Parallel.map(*args) do |item| Thread.current[NodeLogger::CONTEXT_KEY] = parent[NodeLogger::CONTEXT_KEY] block.call(item) end end
Generated with the Darkfish Rdoc Generator 2.