vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/task.rb
# Invoke all the prerequisites of a task in parallel.
Invoke all the prerequisites of a task in parallel.
Invoke all the prerequisites of a task in parallel .
def invoke_prerequisites_concurrently(task_args, invocation_chain)
      futures = prerequisite_tasks.map do |p|
        prereq_args = task_args.new_scope(p.arg_names)
        application.thread_pool.future(p) do |r|
          r.invoke_with_call_chain(prereq_args, invocation_chain)
        end
      end
      futures.reverse_each(&:value)
    end
def invoke_prerequisites_concurrently ( task_args , invocation_chain ) futures = prerequisite_tasks . map do | p | prereq_args = task_args . new_scope ( p . arg_names ) application . thread_pool . future ( p ) do | r | r . invoke_with_call_chain ( prereq_args , invocation_chain ) end end futures . reverse_each ( & :value ) end
Invoke all the prerequisites of a task in parallel.
Invoke all the prerequisites of a task in parallel .
# :nodoc: # Iterate in reverse to improve performance related to thread waiting and switching
task_args
invocation_chain