Methods

Class/Module Index [+]

Quicksearch

OpenShift::Runtime::Threads::Parallel

Public Class Methods

map(*args, &block) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.