Skip to main content

Tomasz Nurkiewicz: ExecutorCompletionService in practice

Everyone is talking about the future of Java, and we continue our journey explaining Future interface in Java. ExecutorCompletionService wrapper class tries to address one of the biggest deficiencies of Future type - no support for callbacks or any event-driven behaviour whatsoever. Let's go back for a moment to our sample asynchronous task downloading contents of a given URL...

Community: OpenJDK