aboutsummaryrefslogtreecommitdiff
path: root/concurrent/futures/api/restricted_1.0.0-beta01.txt
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2019-07-12 23:56:41 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-07-12 23:56:41 +0000
commit098c3cce185587987e863664c1c70b327b9c8eb7 (patch)
treef1b71afac04d3add40b85e773f13924853778331 /concurrent/futures/api/restricted_1.0.0-beta01.txt
parentad8ed2781c51c1720de765b79a83686f3b7b539e (diff)
parent06c8a2a1fe34c72765f408cc04c6105a22c0f67c (diff)
downloadsupport-sparse-5725748-L53400000340532254.tar.gz
Diffstat (limited to 'concurrent/futures/api/restricted_1.0.0-beta01.txt')
-rw-r--r--concurrent/futures/api/restricted_1.0.0-beta01.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/concurrent/futures/api/restricted_1.0.0-beta01.txt b/concurrent/futures/api/restricted_1.0.0-beta01.txt
index 1c05c569c2a..6dabf0b94e3 100644
--- a/concurrent/futures/api/restricted_1.0.0-beta01.txt
+++ b/concurrent/futures/api/restricted_1.0.0-beta01.txt
@@ -18,6 +18,22 @@ package androidx.concurrent.futures {
method protected final boolean wasInterrupted();
}
+ public final class CallbackToFutureAdapter {
+ method public static <T> com.google.common.util.concurrent.ListenableFuture<T!> getFuture(androidx.concurrent.futures.CallbackToFutureAdapter.Resolver<T!>);
+ }
+
+ public static final class CallbackToFutureAdapter.Completer<T> {
+ method public void addCancellationListener(Runnable, java.util.concurrent.Executor);
+ method protected void finalize();
+ method public boolean set(T!);
+ method public boolean setCancelled();
+ method public boolean setException(Throwable);
+ }
+
+ public static interface CallbackToFutureAdapter.Resolver<T> {
+ method public Object? attachCompleter(androidx.concurrent.futures.CallbackToFutureAdapter.Completer<T!>) throws java.lang.Exception;
+ }
+
@RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class ResolvableFuture<V> extends androidx.concurrent.futures.AbstractResolvableFuture<V> {
method public static <V> androidx.concurrent.futures.ResolvableFuture<V!>! create();
method public boolean set(V?);