GithubHelp home page GithubHelp logo

stefan-zobel / java9-concurrent-backport Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 6.0 1.71 MB

Backport of Java 9 CompletableFuture, Flow and SubmissionPublisher API for Java 8

Home Page: https://stefan-zobel.github.io/java9-concurrent-backport/

Java 100.00%
java9 jep-266 completablefuture reactive-streams flow jep-269 java8

java9-concurrent-backport's Introduction

Maven Central javadoc.io

java9-concurrent-backport

java9-concurrent-backport is a backport of the upgraded (JEP 266) Java 9 CompletableFuture API (extended by the new Java 12 CSR JDK-8211010 exception handling methods) for Java 8. In addition, it contains a Java 8 version of the new Java 9 reactive-streams Flow and SubmissionPublisher API (also JEP 266) and of the new Java 9 Collections factory methods from JEP 269 (updated to the Java 14 implementation).

The API is exactly the same as in Java 14 with the exception that it doesn't live in the package java.util(.concurrent) but rather in the package java9.util(.concurrent).

The JEP 269 convenience factory methods for collections are located in companion classes for the corresponding java.util interfaces:

  • java9.util.Lists
  • java9.util.Maps
  • java9.util.Sets

Maven:

<dependency>
    <groupId>net.sourceforge.streamsupport</groupId>
    <artifactId>java9-concurrent-backport</artifactId>
    <version>2.0.5</version>
</dependency>

The minimum runtime requirement is OpenJDK (Oracle) Java 8.

LICENSE

GNU General Public License, version 2, with the Classpath Exception (and CC0 1.0 for JSR-166 derived code)

java9-concurrent-backport's People

Contributors

stefan-zobel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

java9-concurrent-backport's Issues

Add OSGI headers

The current package lacks OSGI header information (such as Bundle-Export, Bundle-Version etc.) which render it not suitable for running in OSGI environments without some wrapping involved.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.