CompletableFuture in Java: thenApply vs thenCompose, allOf, Exceptions and Timeouts (and When Virtual Threads Win)
Why a CompletableFuture chain can be twice as slow, swallow an error, or time out while the work keeps running. thenApply vs thenCompose, which thread runs your stage, exception wrapping, allOf, and where virtual threads win, all measured on JDK 25.