Loading topic
ExecutorService. You should also be comfortable with generics, functional interfaces such as Supplier and Function, and checked versus unchecked exceptions.2 min readExecutorService use. A CompletableFuture<T> represents a possible result of type T that may become available later. You can create one for work that runs asynchronously or for a value th2 min readExecutorService. It also assumes you know that a CompletableFuture<T> represents a result that may become available later.2 min readCompletableFuture, and basic executor concepts. A CompletableFuture<T> represents an asynchronous computation that will eventually produce a value of type T. You can attach stages to describe what should happen after that value is availab2 min readCompletableFuture, basic threads, and ExecutorService. It also assumes you have used supplyAsync and thenApply to start work and transform a result.2 min readCompletableFuture, and basic ExecutorService use. The focus is combining two asynchronous operations that do not depend on each other.2 min readCompletableFuture, and basic executor use. This chapter focuses on coordinating several asynchronous tasks after they have started.2 min readExecutorService, generics, functional interfaces, and checked versus unchecked exceptions.2 min readCompletableFuture, ExecutorService, and the difference between CPU-bound work and blocking work such as file or network I/O.2 min readExecutorService. A CompletableFuture stage can run its continuation in two main ways:2 min readCompletableFuture normally completes when the asynchronous operation supplied to it finishes. Sometimes, however, another part of your program already owns the result. In that case, create an empty future and complete it later with complete or completeExceptionally.2 min readCompletableFuture, basic threads, and ExecutorService. This chapter uses Java 9 or later because orTimeout and completeOnTimeout were added in Java 9.2 min readExecutorService, and the basic CompletableFuture methods. This chapter focuses on problems that often appear after a future-based design seems to work.2 min read