{"id":66529,"library":"completable-futures","title":"Spotify Completable Futures","description":"Provides convenience utilities for working with Java 8 CompletableFuture, including combinators and error handling.","status":"active","version":"0.3.6","language":"java","source_language":null,"source_url":"https://github.com/spotify/completable-futures","tags":["futures","async","utilities","java8"],"install":[{"cmd":"<dependency>\n  <groupId>com.spotify</groupId>\n  <artifactId>completable-futures</artifactId>\n  <version>0.3.6</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.spotify:completable-futures:0.3.6'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"CompletableFutures","correct":"com.spotify.futures.CompletableFutures"}],"quickstart":{"code":"import com.spotify.futures.CompletableFutures;\nimport java.util.concurrent.CompletableFuture;\n\npublic class Quickstart {\n    public static void main(String[] args) throws Exception {\n        CompletableFuture<String> future = CompletableFuture.completedFuture(\"hello\");\n        CompletableFuture<String> result = CompletableFutures.exceptionallyCompose(future, throwable -> CompletableFuture.completedFuture(\"fallback\"));\n        System.out.println(result.get());\n    }\n}","lang":"java","description":"Uses CompletableFutures.exceptionallyCompose to handle errors gracefully."},"warnings":[],"env_vars":null,"search_vec":"'8':11 'async':19 'combin':14 'complet':2 'completablefutur':12 'conveni':5 'error':16 'futur':3,18 'handl':17 'includ':13 'java':10 'java8':21 'provid':4 'spotifi':1 'util':6,20 'work':8","created_at":"2026-06-17T17:25:01.286193+00:00","updated_at":"2026-06-17T17:25:01.286193+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://spotify.github.io/completable-futures","github":"https://github.com/spotify/completable-futures","docs":"https://appdoc.app/artifact/com.spotify/completable-futures/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}