Thomas Wana Thomas Wana -4 years ago 251
Android Question

CompletableFuture in the Android Support Library?

So I was migrating an Android Studio project to Java 8, Android API level 24 and the Jack toolchain today to check out the new features, especially lambdas and


seems to be available only from API level 24 on (my minimum API level for that project being 16).

Do you know of any plans on bringing
to the Android support library? It looks like a nice solution for the Promises pattern.

Answer Source

The streamsupport project provides a backport of CompletableFuture in its streamsupport-cfuture component which can be used for Android development, supported on all devices.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download