项目作者: stefan-zobel

项目描述 :
Backport of Java 9 CompletableFuture, Flow and SubmissionPublisher API for Java 8
高级语言: Java
项目地址: git://github.com/stefan-zobel/java9-concurrent-backport.git
创建时间: 2018-03-30T18:27:01Z
项目社区:https://github.com/stefan-zobel/java9-concurrent-backport

开源协议:

下载


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:

  1. <dependency>
  2. <groupId>net.sourceforge.streamsupport</groupId>
  3. <artifactId>java9-concurrent-backport</artifactId>
  4. <version>2.0.5</version>
  5. </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)