{"id":37023785,"url":"https://github.com/fschopp/java-futures","last_synced_at":"2026-01-14T02:51:46.228Z","repository":{"id":57737155,"uuid":"52633926","full_name":"fschopp/java-futures","owner":"fschopp","description":"Bridge gaps and help overcome inconveniences with CompletableFuture","archived":false,"fork":false,"pushed_at":"2016-03-15T00:05:48.000Z","size":265,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-04T12:41:36.636Z","etag":null,"topics":["completablefuture"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fschopp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-26T21:29:14.000Z","updated_at":"2018-12-18T03:14:12.000Z","dependencies_parsed_at":"2022-08-24T05:31:46.593Z","dependency_job_id":null,"html_url":"https://github.com/fschopp/java-futures","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fschopp/java-futures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fschopp%2Fjava-futures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fschopp%2Fjava-futures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fschopp%2Fjava-futures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fschopp%2Fjava-futures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fschopp","download_url":"https://codeload.github.com/fschopp/java-futures/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fschopp%2Fjava-futures/sbom","scorecard":{"id":412621,"data":{"date":"2025-08-11","repo":{"name":"github.com/fschopp/java-futures","commit":"8bab075e6b85c726c4db0d3cfe012291f7cd3b66"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T23:06:16.153Z","repository_id":57737155,"created_at":"2025-08-18T23:06:16.153Z","updated_at":"2025-08-18T23:06:16.153Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["completablefuture"],"created_at":"2026-01-14T02:51:45.479Z","updated_at":"2026-01-14T02:51:46.219Z","avatar_url":"https://github.com/fschopp.png","language":"Java","readme":"Bridge gaps and help overcome inconveniences with\n[`CompletableFuture`](http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html).\n\n## Status\n[![Build Status](https://travis-ci.org/fschopp/java-futures.svg?branch=master)](https://travis-ci.org/fschopp/java-futures)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.florianschoppmann.java/java-futures/badge.svg?style=flat)](http://search.maven.org/#search|gav|1|g:net.florianschoppmann.java%20AND%20a:java-futures)\n\n## Overview\n\n- requires Java 8\n- methods that collect the results of multiple completion stages into a `List`\n  future, both with short-circuit semantics (fail early if an input completion\n  stage fails) and without (guaranteed not to be completed while there are\n  uncompleted input stages)\n- equivalent methods for\n  [`supplyAsync`](http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html#supplyAsync-java.util.function.Supplier-),\n  [`thenApply`](http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html#thenApply-java.util.function.Function-),\n  [`thenCompose`](http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html#thenCompose-java.util.function.Function-),\n  etc. that accept functions throwing checked exceptions\n- method similar to Scala’s\n  [`Promise#completeWith`](http://www.scala-lang.org/api/current/index.html#scala.concurrent.Promise@completeWith(other:scala.concurrent.Future[T]):Promise.this.type)\n- method for unwrapping\n  [`CompletionException`](http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionException.html)\n- method for exception mapping\n- methods for dealing with asynchronous\n  “[try-with-resources](https://docs.oracle.com/javase/specs/jls/se8/html/jls-14.html#jls-14.20.3)”\n  scenarios\n- tests have virtually\n  [full code coverage](http://fschopp.github.io/java-futures/snapshot/jacoco)\n\n## License\n\n[Revised BSD (3-Clause) License](LICENSE)\n\n## Binary Releases\n\nPublished releases (compiled for Java 8 and up) are available on Maven Central.\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003enet.florianschoppmann.java\u003c/groupId\u003e\n    \u003cartifactId\u003ejava-futures\u003c/artifactId\u003e\n    \u003cversion\u003e1.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Documentation\n\nFor current snapshot:\n\n- [API documentation](http://fschopp.github.io/java-futures/snapshot/apidocs)\n- [Maven-generated project documentation](http://fschopp.github.io/java-futures/snapshot)\n\nRelease documentation is available by replacing “snapshot” in the URL by the\nrespective version number (such as “1.1.0”).\n\n## Usage Examples\n\nThe following examples show some use cases of class `Futures` provided by this\nproject.\n\n### Collect the results of multiple completion stages into a `List` future\n\n```java\nCompletableFuture\u003cInteger\u003e sum(Set\u003cCompletionStage\u003cInteger\u003e\u003e set) {\n    return Futures.shortCircuitCollect(set)\n        .thenApply(list -\u003e list.stream().mapToInt(Integer::intValue).sum());\n}\n```\n\n### Equivalent methods allowing for checked exceptions\n\n```java\nCompletableFuture\u003cLong\u003e fileSize(CompletionStage\u003cPath\u003e filePathStage,\n        Executor executor) {\n    // Note that Files#size(Path) throws an IOException, hence it would have to\n    // be wrapped in the lambda expression passed to\n    // CompletionStage#thenApply(Function).\n    return Futures.thenApplyAsync(filePathStage, Files::size, executor);\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffschopp%2Fjava-futures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffschopp%2Fjava-futures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffschopp%2Fjava-futures/lists"}