Replaced CompletableFuture, which is compatible with the Android platform.

This commit is contained in:
ChronosX88 2019-05-10 18:46:51 +04:00
parent 3d58d966bf
commit 2d10e4d73e
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,7 @@ repositories {
dependencies { dependencies {
implementation 'org.java-websocket:Java-WebSocket:1.4.0' implementation 'org.java-websocket:Java-WebSocket:1.4.0'
implementation 'net.sourceforge.streamsupport:android-retrofuture:1.7.0'
implementation group: 'org.json', name: 'json', version: '20180813' implementation group: 'org.json', name: 'json', version: '20180813'
testCompile group: 'junit', name: 'junit', version: '4.12' testCompile group: 'junit', name: 'junit', version: '4.12'

View File

@ -1,8 +1,10 @@
package io.github.chronosx88.JGUN.futures; package io.github.chronosx88.JGUN.futures;
import java.util.concurrent.CompletableFuture; import java9.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
public class BaseCompletableFuture<T> extends CompletableFuture<T> { public class BaseCompletableFuture<T> extends CompletableFuture<T> {
private final String futureID; private final String futureID;