149 lines
4.1 KiB
Smali
149 lines
4.1 KiB
Smali
.class public final Landroidx/work/ListenableFutureKt;
|
|
.super Ljava/lang/Object;
|
|
.source "ListenableFuture.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final await(Lf/k/b/a/a/a;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<R:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lf/k/b/a/a/a<",
|
|
"TR;>;",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"-TR;>;)",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p0}, Ljava/util/concurrent/Future;->isDone()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
:try_start_0
|
|
invoke-interface {p0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
move-object p0, p1
|
|
|
|
:cond_0
|
|
throw p0
|
|
|
|
:cond_1
|
|
new-instance v0, Lz/a/i;
|
|
|
|
invoke-static {p1}, Lf/n/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, p1, v1}, Lz/a/i;-><init>(Lkotlin/coroutines/Continuation;I)V
|
|
|
|
new-instance p1, Landroidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1;
|
|
|
|
invoke-direct {p1, v0, p0}, Landroidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1;-><init>(Lz/a/h;Lf/k/b/a/a/a;)V
|
|
|
|
sget-object v1, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
|
|
|
|
invoke-interface {p0, p1, v1}, Lf/k/b/a/a/a;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
|
|
invoke-virtual {v0}, Lz/a/i;->d()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
sget-object p1, Ly/s/g/a;->d:Ly/s/g/a;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final await$$forInline(Lf/k/b/a/a/a;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p0}, Ljava/util/concurrent/Future;->isDone()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
:try_start_0
|
|
invoke-interface {p0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
move-object p0, p1
|
|
|
|
:cond_0
|
|
throw p0
|
|
|
|
:cond_1
|
|
new-instance v0, Lz/a/i;
|
|
|
|
invoke-static {p1}, Lf/n/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, p1, v1}, Lz/a/i;-><init>(Lkotlin/coroutines/Continuation;I)V
|
|
|
|
new-instance p1, Landroidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1;
|
|
|
|
invoke-direct {p1, v0, p0}, Landroidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1;-><init>(Lz/a/h;Lf/k/b/a/a/a;)V
|
|
|
|
sget-object v1, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
|
|
|
|
invoke-interface {p0, p1, v1}, Lf/k/b/a/a/a;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
|
|
invoke-virtual {v0}, Lz/a/i;->d()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
sget-object p1, Ly/s/g/a;->d:Ly/s/g/a;
|
|
|
|
return-object p0
|
|
.end method
|