class Bundler::ParallelInstaller

def call

def call
  # Since `autoload` has the potential for threading issues on 1.8.7
  # TODO:  remove in bundler 2.0
  require "bundler/gem_remote_fetcher" if RUBY_VERSION < "1.9"
  check_for_corrupt_lockfile
  enqueue_specs
  process_specs until @specs.all?(&:installed?) || @specs.any?(&:failed?)
  handle_error if @specs.any?(&:failed?)
  @specs
ensure
  worker_pool && worker_pool.stop
end