ru-fix/jfix-stdlib

PendingFutureLimiter#waitAll(long timeoutMillis) gets stuck after calling `enqueueBlocking` function without any delay

Closed this issue · 1 comments

reproducing:

Screenshot from 2020-05-18 11-29-24

I create pull-request with tests for different cases: #53

Here is common info:

  • it doesn't matter the enqueued future is completed or not, when it passed to enqueueBlocking method
  • but does not reproduce with the waitAll() method (without timeout argument)
  • but does not reproduce with the enqueueUnlimited() method
  • but does not reproduce in case when there are time break between enqueue and waiting (e g Thread.sleep(1))

UPD I think i found the bug. pull-request above