ruby 2.7 compatibility - #117

This commit is contained in:
josh committed 2020-04-16 15:48:45 -04:00
1 parent fbe60f6ba2
commit dded5e2648
3 files changed
+28 -6

No files matched your search

+1 -5
View File
@@ -1,7 +1,6 @@
require "fileutils"
require "set"
require "shellwords"
require "thwait"
module Rscons
# The Environment class is the main programmatic interface to Rscons. It
@@ -702,10 +701,7 @@ module Rscons
!thread.alive?
end
else
if @threads.empty?
raise "No threads to wait for"
end
ThreadsWait.new(*@threads.keys).next_wait
Util.wait_for_thread(*@threads.keys)
end
end