Whilst debugging async I noticed:
final CountDownLatch current = phase.getAndSet(new CountDownLatch(1)); current.countDown();
getAndSet returns the previous value - so is the countdown wrong or should it be the new phase thats counted down?
Whilst debugging async I noticed:
final CountDownLatch current = phase.getAndSet(new CountDownLatch(1)); current.countDown();
getAndSet returns the previous value - so is the countdown wrong or should it be the new phase thats counted down?