CommandAsyncService.get method optimization

pull/653/head
Nikita 8 years ago
parent 02adac8564
commit dd93ebbe0d

@ -118,6 +118,7 @@ public class CommandAsyncService implements CommandAsyncExecutor {
@Override
public <V> V get(RFuture<V> future) {
if (!future.isDone()) {
final CountDownLatch l = new CountDownLatch(1);
future.addListener(new FutureListener<V>() {
@Override
@ -138,6 +139,7 @@ public class CommandAsyncService implements CommandAsyncExecutor {
if (interrupted) {
Thread.currentThread().interrupt();
}
}
// commented out due to blocking issues up to 200 ms per minute for each thread
// future.awaitUninterruptibly();

Loading…
Cancel
Save