Tagged articles
3 articles
Page 1 of 1
Code Ape Tech Column
Code Ape Tech Column
Sep 25, 2021 · Backend Development

Understanding Java 8 CompletionStage and CompletableFuture with Practical Examples

This article explains Java 8's CompletionStage API and its standard library implementation CompletableFuture, demonstrating its behavior through a series of concise examples that cover creation, chaining, asynchronous execution, custom executors, exception handling, cancellation, and composition of multiple stages.

BackendCompletableFutureCompletionStage
0 likes · 18 min read
Understanding Java 8 CompletionStage and CompletableFuture with Practical Examples
Top Architect
Top Architect
Apr 7, 2021 · Backend Development

20 Practical Examples of Using Java CompletableFuture for Asynchronous Programming

This article introduces Java's CompletableFuture and CompletionStage APIs, explains their contracts, and provides twenty concise code examples that demonstrate creating completed futures, running async stages, applying functions synchronously and asynchronously, handling exceptions, combining futures, using custom executors, and orchestrating multiple stages with allOf/anyOf.

AsynchronousCompletableFutureCompletionStage
0 likes · 16 min read
20 Practical Examples of Using Java CompletableFuture for Asynchronous Programming
Top Architect
Top Architect
Sep 7, 2020 · Backend Development

Understanding Java 8 CompletionStage and CompletableFuture with Practical Examples

This article introduces Java 8's CompletionStage API and its CompletableFuture implementation, explains the contract of CompletionStage, and demonstrates a wide range of synchronous and asynchronous operations—including creation, chaining, exception handling, combinators, and real‑world usage—through concise code examples.

AsynchronousCompletableFutureCompletionStage
0 likes · 16 min read
Understanding Java 8 CompletionStage and CompletableFuture with Practical Examples