v5, chapter 3, p. 78 contains the somewhat incorrect statement that prior to Java 8, Java's futures required blocking to get the result of the computation out. However, the JDK offers FutureTask (since version 1.5), which has the protected method done(), which is invoked asynchronously upon completion of the task.
I really like the book.
|