Overview
Explore the world of asynchronous programming in Java with this comprehensive conference talk on CompletableFuture. Dive into the evolution of concurrency in Java, from ThreadLocal to Future and CompletableFuture, introduced in Java 8 and improved in Java 9. Learn how to leverage these powerful features for efficient asynchronous computations through clear examples and comparisons with other languages, particularly JavaScript. Discover the concepts of atomic operations, thread-safe collections, and the Executor framework. Master the art of chaining, transforming, and controlling multiple futures, as well as handling exceptions in asynchronous tasks. Gain valuable insights into making concurrent programming more accessible and programmer-friendly, enhancing your Java development skills for modern, high-performance applications.
Syllabus
Intro
Goals
Motivation
Concurrency & Sharks
Agenda
Form: Concurrency
Form: Parallelism
Form: Asynchrony
Atomic Operations
Thread Safe Collections
Promises in JavaScript
Executor Framework
Executor Factories
Executor Service
No Futures Chaining
CompletableFuture
Transformation/Chaining
Controllable Futures
Multiple Futures Control
Exception Handling
Taught by
Devoxx