All Projects → retrostreams → Android Retrofuture

retrostreams / Android Retrofuture

Backport of Java 9 (JEP 266) CompletableFuture API for Android Studio 3.x D8 / desugar toolchain, forked from https://github.com/stefan-zobel/streamsupport

Programming Languages

java
68154 projects - #9 most used programming language
java8
65 projects

Labels

Maven Central javadoc.io Download

android-retrofuture

android-retrofuture is a backport of the Java 8 CompletableFuture API upgraded to the current Java 9 (JEP 266) enhancements for Android developers wanting to use the Android Studio 3.x D8 / desugar toolchain.

There is nothing specific to Android or the desugar toolchain in this code (it could even be compiled to Java 6 bytecode) but it has a dependency on android-retrostreams which is why this exists as a separate component (the corresponding streamsupport-cfuture component can't be used with android-retrostreams and android-retrostreams itself can only be used with desugar or Java 8 and higher).

Other than having a different package name this code has no further changes compared with streamsupport-cfuture

The new Java 12 exception handling methods for CompletableFuture JDK-8211010 have been integrated in release 1.7.0

Online Javadoc is available at docs

Please give feedback here if you experience any problems.

build.gradle:

dependencies {
    implementation 'net.sourceforge.streamsupport:android-retrofuture:1.7.3'
}

LICENSE

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].