class Rake::Task

def invoke_prerequisites_concurrently(args, invocation_chain) # :nodoc:

:nodoc:
Invoke all the prerequisites of a task in parallel.
def invoke_prerequisites_concurrently(args, invocation_chain) # :nodoc:
  futures = @prerequisites.collect do |p|
    application.thread_pool.future(p) do |r|
      application[r, @scope].invoke_with_call_chain(args, invocation_chain)
    end
  end
  futures.each { |f| f.call }
end