Skip to content

Commit 3f0e6e3

Browse files
committed
ThreadPoolExecutor kill will wait_for_termination in JRuby
1 parent eae2851 commit 3f0e6e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/concurrent-ruby/concurrent/executor/java_executor_service.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ def shutdown
4646
def kill
4747
synchronize do
4848
@executor.shutdownNow
49-
nil
5049
end
50+
wait_for_termination
51+
nil
5152
end
5253

5354
private

0 commit comments

Comments
 (0)