method

compact_index_client

ruby latest stable - Class: Bundler::Fetcher::CompactIndex

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

compact_index_client()
private

No documentation available.

# File lib/bundler/fetcher/compact_index.rb, line 82
      def compact_index_client
        @compact_index_client ||= begin
          SharedHelpers.filesystem_access(cache_path) do
            CompactIndexClient.new(cache_path, client_fetcher)
          end.tap do |client|
            client.in_parallel = lambda do |inputs, &blk|
              func = lambda {|object, _index| blk.call(object) }
              worker = bundle_worker(func)
              inputs.each {|input| worker.enq(input) }
              inputs.map { worker.deq }
            end
          end
        end
      end