Closed
Description
when for loop ends with all futures done or cancelled in ClusterCommandExecutor.collectResults()
.
after that, there is no need for thread to be slept, but Thread.sleep()
is called unnecessarily.
it could be better to check if the done
is false.
try {
if (!done) {
Thread.sleep(10);
}
} catch (InterruptedException e) {
// ...
}