We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2cda976 + 4d3b5d7 commit 84bb052Copy full SHA for 84bb052
lib/rake/thread_pool.rb
@@ -1,6 +1,7 @@
1
# frozen_string_literal: true
2
3
require "rake/promise"
4
+require "set"
5
6
module Rake
7
@@ -9,7 +10,6 @@ class ThreadPool # :nodoc: all
9
10
# Creates a ThreadPool object. The +thread_count+ parameter is the size
11
# of the pool.
12
def initialize(thread_count)
- require "set"
13
@max_active_threads = [thread_count, 0].max
14
@threads = Set.new
15
@threads_mon = Monitor.new
0 commit comments