thepointman.dev_

Courses / Java Concurrency

CompletableFuture

advanced8 lessons

supplyAsync vs runAsync, thenApply (map) vs thenCompose (flatMap), thenCombine for joining two independent results, allOf/anyOf, error recovery with exceptionally vs handle vs whenComplete, the commonPool thread starvation trap for I/O-bound tasks, and building a real async pipeline step by step.

// Lessons

  1. 01

    The Problem with Future — Blocking and No Composition

    soon
  2. 02

    supplyAsync and runAsync — Starting an Async Computation

    soon
  3. 03

    thenApply and thenCompose — map vs flatMap for Futures

    soon
  4. 04

    thenCombine — Joining Two Independent Futures

    soon
  5. 05

    allOf and anyOf — Waiting for Multiple Futures

    soon
  6. 06

    exceptionally and handle — Error Recovery in the Pipeline

    soon
  7. 07

    whenComplete — Side Effects Regardless of Success or Failure

    soon
  8. 08

    Avoiding the commonPool — Custom Executors for I/O-Bound Tasks

    soon