# File lib/rake/application.rb, line 107 107: def run_with_threads 108: thread_pool.gather_history if options.job_stats == :history 109: 110: yield 111: 112: thread_pool.join 113: if options.job_stats 114: stats = thread_pool.statistics 115: puts "Maximum active threads: #{stats[:max_active_threads]}" 116: puts "Total threads in play: #{stats[:total_threads_in_play]}" 117: end 118: ThreadHistoryDisplay.new(thread_pool.history).show if options.job_stats == :history 119: end