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.
1 parent db7c21f commit d8c81c5Copy full SHA for d8c81c5
lib/concurrent/edge/future.rb
@@ -399,10 +399,14 @@ def wait_until_complete(timeout)
399
400
@Lock.synchronize do
401
@Waiters.increment
402
- unless completed?
403
- @Condition.wait @Lock, timeout
+ begin
+ unless completed?
404
+ @Condition.wait @Lock, timeout
405
+ end
406
+ ensure
407
+ # JRuby may raise ConcurrencyError
408
+ @Waiters.decrement
409
end
- @Waiters.decrement
410
411
completed?
412
0 commit comments