We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c591402 + cf8b376 commit a842fb2Copy full SHA for a842fb2
lib/rake/thread_pool.rb
@@ -1,5 +1,4 @@
1
# frozen_string_literal: true
2
-require "set"
3
4
require "rake/promise"
5
@@ -10,6 +9,7 @@ class ThreadPool # :nodoc: all
10
9
# 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