456 lines
15 KiB
Smali
456 lines
15 KiB
Smali
.class public final Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;
|
|
.super Ljava/lang/Object;
|
|
.source "SelectUnbiased.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlinx/coroutines/selects/a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lkotlinx/coroutines/selects/a<",
|
|
"TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nSelectUnbiased.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SelectUnbiased.kt\nkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,70:1\n1799#2,2:71\n*E\n*S KotlinDebug\n*F\n+ 1 SelectUnbiased.kt\nkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl\n*L\n46#1,2:71\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000^\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0003\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\t\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0007\u0008\u0001\u0018\u0000*\u0006\u0008\u0000\u0010\u0001 \u00002\u0008\u0012\u0004\u0012\u00028\u00000\u0002B\u0015\u0012\u000c\u0010(\u001a\u0008\u0012\u0004\u0012\u00028\u00000\n\u00a2\u0006\u0004\u0008)\u0010*J\u0010\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0003H\u0001J\n\u0010\u0004\u001a\u0004\u0018\u00010\u0007H\u0001J5\u0010\u000c\u001a\u00020\u0005*\u00020\u00082\u001c\u0010\u000b\u001a\u0018\u0008\u0001\u0012\n\u0012\u0008\u0012\u0004\u0012\u00028\u00000\n\u0012\u0006\u0012\u0004\u0018\u00010\u00070\tH\u0096\u0002\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u000c\u0010\rJG\u0010\u0011\u001a\u00020\u0005\"\u0004\u0008\u0001\u0010\u000e*\u0008\u0012\u0004\u0012\u00028\u00010\u000f2\"\u0010\u000b\u001a\u001e\u0008\u0001\u0012\u0004\u0012\u00028\u0001\u0012\n\u0012\u0008\u0012\u0004\u0012\u00028\u00000\n\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u0010H\u0096\u0002\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0011\u0010\u0012J[\u0010\u0016\u001a\u00020\u0005\"\u0004\u0008\u0001\u0010\u0013\"\u0004\u0008\u0002\u0010\u000e*\u000e\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u00142\u0006\u0010\u0015\u001a\u00028\u00012\"\u0010\u000b\u001a\u001e\u0008\u0001\u0012\u0004\u0012\u00028\u0002\u0012\n\u0012\u0008\u0012\u0004\u0012\u00028\u00000\n\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u0010H\u0096\u0002\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0016\u0010\u0017J8\u0010\u001a\u001a\u00020\u00052\u0006\u0010\u0019\u001a\u00020\u00182\u001c\u0010\u000b\u001a\u0018\u0008\u0001\u0012\n\u0012\u0008\u0012\u0004\u0012\u00028\u00000\n\u0012\u0006\u0012\u0004\u0018\u00010\u00070\tH\u0016\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u001a\u0010\u001bR\u001d\u0010!\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u001c8\u0006\u00a2\u0006\u000c\n\u0004\u0008\u001d\u0010\u001e\u001a\u0004\u0008\u001f\u0010 R3\u0010\'\u001a\u001e\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\u00050#0\"j\u000e\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\u00050#`$8\u0006\u00a2\u0006\u000c\n\u0004\u0008\u0016\u0010%\u001a\u0004\u0008\u001d\u0010&\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006+"
|
|
}
|
|
d2 = {
|
|
"Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;",
|
|
"R",
|
|
"Lkotlinx/coroutines/selects/a;",
|
|
"",
|
|
"e",
|
|
"Lkotlin/d1;",
|
|
"d",
|
|
"",
|
|
"Lkotlinx/coroutines/selects/c;",
|
|
"Lkotlin/Function1;",
|
|
"Lkotlin/coroutines/c;",
|
|
"block",
|
|
"k",
|
|
"(Lkotlinx/coroutines/selects/c;Lej/l;)V",
|
|
"Q",
|
|
"Lkotlinx/coroutines/selects/d;",
|
|
"Lkotlin/Function2;",
|
|
"o",
|
|
"(Lkotlinx/coroutines/selects/d;Lej/p;)V",
|
|
"P",
|
|
"Lkotlinx/coroutines/selects/e;",
|
|
"param",
|
|
"b",
|
|
"(Lkotlinx/coroutines/selects/e;Ljava/lang/Object;Lej/p;)V",
|
|
"",
|
|
"timeMillis",
|
|
"v",
|
|
"(JLej/l;)V",
|
|
"Lkotlinx/coroutines/selects/b;",
|
|
"a",
|
|
"Lkotlinx/coroutines/selects/b;",
|
|
"c",
|
|
"()Lkotlinx/coroutines/selects/b;",
|
|
"instance",
|
|
"Ljava/util/ArrayList;",
|
|
"Lkotlin/Function0;",
|
|
"Lkotlin/collections/ArrayList;",
|
|
"Ljava/util/ArrayList;",
|
|
"()Ljava/util/ArrayList;",
|
|
"clauses",
|
|
"uCont",
|
|
"<init>",
|
|
"(Lkotlin/coroutines/c;)V",
|
|
"kotlinx-coroutines-core"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/PublishedApi;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lkotlinx/coroutines/selects/b;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlinx/coroutines/selects/b<",
|
|
"TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final b:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Lej/a<",
|
|
"Lkotlin/d1;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkotlin/coroutines/c;)V
|
|
.locals 1
|
|
.param p1 # Lkotlin/coroutines/c;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/coroutines/c<",
|
|
"-TR;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Lkotlinx/coroutines/selects/b;
|
|
|
|
invoke-direct {v0, p1}, Lkotlinx/coroutines/selects/b;-><init>(Lkotlin/coroutines/c;)V
|
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->a:Lkotlinx/coroutines/selects/b;
|
|
|
|
.line 3
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->b:Ljava/util/ArrayList;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Ljava/util/ArrayList;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/ArrayList<",
|
|
"Lej/a<",
|
|
"Lkotlin/d1;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->b:Ljava/util/ArrayList;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public b(Lkotlinx/coroutines/selects/e;Ljava/lang/Object;Lej/p;)V
|
|
.locals 2
|
|
.param p1 # Lkotlinx/coroutines/selects/e;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Lej/p;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<P:",
|
|
"Ljava/lang/Object;",
|
|
"Q:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlinx/coroutines/selects/e<",
|
|
"-TP;+TQ;>;TP;",
|
|
"Lej/p<",
|
|
"-TQ;-",
|
|
"Lkotlin/coroutines/c<",
|
|
"-TR;>;+",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->b:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl$invoke$3;
|
|
|
|
invoke-direct {v1, p0, p1, p2, p3}, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl$invoke$3;-><init>(Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;Lkotlinx/coroutines/selects/e;Ljava/lang/Object;Lej/p;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c()Lkotlinx/coroutines/selects/b;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lkotlinx/coroutines/selects/b<",
|
|
"TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->a:Lkotlinx/coroutines/selects/b;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final d(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
.param p1 # Ljava/lang/Throwable;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/PublishedApi;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->a:Lkotlinx/coroutines/selects/b;
|
|
|
|
invoke-virtual {v0, p1}, Lkotlinx/coroutines/selects/b;->o0(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e()Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation build Lkotlin/PublishedApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->a:Lkotlinx/coroutines/selects/b;
|
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/selects/b;->i()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->b:Ljava/util/ArrayList;
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->shuffle(Ljava/util/List;)V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->b:Ljava/util/ArrayList;
|
|
|
|
.line 4
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lej/a;
|
|
|
|
.line 5
|
|
invoke-interface {v1}, Lej/a;->invoke()Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 6
|
|
iget-object v1, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->a:Lkotlinx/coroutines/selects/b;
|
|
|
|
invoke-virtual {v1, v0}, Lkotlinx/coroutines/selects/b;->o0(Ljava/lang/Throwable;)V
|
|
|
|
.line 7
|
|
:cond_0
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->a:Lkotlinx/coroutines/selects/b;
|
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/selects/b;->n0()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public k(Lkotlinx/coroutines/selects/c;Lej/l;)V
|
|
.locals 2
|
|
.param p1 # Lkotlinx/coroutines/selects/c;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lej/l;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlinx/coroutines/selects/c;",
|
|
"Lej/l<",
|
|
"-",
|
|
"Lkotlin/coroutines/c<",
|
|
"-TR;>;+",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->b:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl$invoke$1;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl$invoke$1;-><init>(Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;Lkotlinx/coroutines/selects/c;Lej/l;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public o(Lkotlinx/coroutines/selects/d;Lej/p;)V
|
|
.locals 2
|
|
.param p1 # Lkotlinx/coroutines/selects/d;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lej/p;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<Q:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlinx/coroutines/selects/d<",
|
|
"+TQ;>;",
|
|
"Lej/p<",
|
|
"-TQ;-",
|
|
"Lkotlin/coroutines/c<",
|
|
"-TR;>;+",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->b:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl$invoke$2;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl$invoke$2;-><init>(Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;Lkotlinx/coroutines/selects/d;Lej/p;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public r(Lkotlinx/coroutines/selects/e;Lej/p;)V
|
|
.locals 0
|
|
.param p1 # Lkotlinx/coroutines/selects/e;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lej/p;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<P:",
|
|
"Ljava/lang/Object;",
|
|
"Q:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlinx/coroutines/selects/e<",
|
|
"-TP;+TQ;>;",
|
|
"Lej/p<",
|
|
"-TQ;-",
|
|
"Lkotlin/coroutines/c<",
|
|
"-TR;>;+",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p0, p1, p2}, Lkotlinx/coroutines/selects/a$a;->a(Lkotlinx/coroutines/selects/a;Lkotlinx/coroutines/selects/e;Lej/p;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public v(JLej/l;)V
|
|
.locals 2
|
|
.param p3 # Lej/l;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(J",
|
|
"Lej/l<",
|
|
"-",
|
|
"Lkotlin/coroutines/c<",
|
|
"-TR;>;+",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;->b:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl$onTimeout$1;
|
|
|
|
invoke-direct {v1, p0, p1, p2, p3}, Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl$onTimeout$1;-><init>(Lkotlinx/coroutines/selects/UnbiasedSelectBuilderImpl;JLej/l;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|