2019-07-24 11:27:29 +00:00
|
|
|
.class public final La/i;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "TaskCompletionSource.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<TResult:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-10-09 23:16:36 +00:00
|
|
|
.field final W:La/h;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"La/h<",
|
|
|
|
"TTResult;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, La/h;
|
|
|
|
|
|
|
|
invoke-direct {v0}, La/h;-><init>()V
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
iput-object v0, p0, La/i;->W:La/h;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private b(Ljava/lang/Exception;)Z
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
iget-object v0, p0, La/i;->W:La/h;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, La/h;->b(Ljava/lang/Exception;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method private b(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TTResult;)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
iget-object v0, p0, La/i;->W:La/h;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0, p1}, La/h;->b(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final c(Ljava/lang/Exception;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, La/i;->b(Ljava/lang/Exception;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "Cannot set the error on a completed task."
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method public final c(Ljava/lang/Object;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TTResult;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-direct {p0, p1}, La/i;->b(Ljava/lang/Object;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "Cannot set the result of a completed task."
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public final s()V
|
2019-10-07 23:23:22 +00:00
|
|
|
.locals 2
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
iget-object v0, p0, La/i;->W:La/h;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-virtual {v0}, La/h;->r()Z
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v1, "Cannot cancel a completed task."
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|