Registry / utility / completable-futures

completable-futures

JSON →
library0.3.6javamavenunverified

Provides convenience utilities for working with Java 8 CompletableFuture, including combinators and error handling.

<dependency> <groupId>com.spotify</groupId> <artifactId>completable-futures</artifactId> <version>0.3.6</version> </dependency>
INSTALL
IMPORT
SIG · COMPLETABLE-FUTURE
C
completable-futures
utilityjavav0.3.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CompletableFutures
com.spotify.futures.CompletableFutures

Uses CompletableFutures.exceptionallyCompose to handle errors gracefully.

import com.spotify.futures.CompletableFutures; import java.util.concurrent.CompletableFuture; public class Quickstart { public static void main(String[] args) throws Exception { CompletableFuture<String> future = CompletableFuture.completedFuture("hello"); CompletableFuture<String> result = CompletableFutures.exceptionallyCompose(future, throwable -> CompletableFuture.completedFuture("fallback")); System.out.println(result.get()); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.6latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
completable-futures — mvn dependency:get completable-futures · libregistry