Method call to Future.get() blocks. Is that really desirable?
Future offers you method isDone() which is not blocking and returns true if computation has completed, false otherwise. Future.get() is used to retrieve the result of computation. You have a couple of options: call isDone() and if the result is ready ask for it by invoking get(), notice how there is no blocking block indefinitely … Read more