Add Discord APKTool decompilation (Smali source for modding)

- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
.class public final enum Lkotlinx/coroutines/channels/BufferOverflow;
.super Ljava/lang/Enum;
.source "SourceFile"
# static fields
.field private static final synthetic $VALUES:[Lkotlinx/coroutines/channels/BufferOverflow;
.field public static final enum DROP_LATEST:Lkotlinx/coroutines/channels/BufferOverflow;
.field public static final enum DROP_OLDEST:Lkotlinx/coroutines/channels/BufferOverflow;
.field public static final enum SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
# direct methods
.method private static final synthetic $values()[Lkotlinx/coroutines/channels/BufferOverflow;
.locals 3
sget-object v0, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
sget-object v1, Lkotlinx/coroutines/channels/BufferOverflow;->DROP_OLDEST:Lkotlinx/coroutines/channels/BufferOverflow;
sget-object v2, Lkotlinx/coroutines/channels/BufferOverflow;->DROP_LATEST:Lkotlinx/coroutines/channels/BufferOverflow;
filled-new-array {v0, v1, v2}, [Lkotlinx/coroutines/channels/BufferOverflow;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 21
new-instance v0, Lkotlinx/coroutines/channels/BufferOverflow;
const-string v1, "SUSPEND"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lkotlinx/coroutines/channels/BufferOverflow;-><init>(Ljava/lang/String;I)V
sput-object v0, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
.line 26
new-instance v0, Lkotlinx/coroutines/channels/BufferOverflow;
const-string v1, "DROP_OLDEST"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lkotlinx/coroutines/channels/BufferOverflow;-><init>(Ljava/lang/String;I)V
sput-object v0, Lkotlinx/coroutines/channels/BufferOverflow;->DROP_OLDEST:Lkotlinx/coroutines/channels/BufferOverflow;
.line 32
new-instance v0, Lkotlinx/coroutines/channels/BufferOverflow;
const-string v1, "DROP_LATEST"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lkotlinx/coroutines/channels/BufferOverflow;-><init>(Ljava/lang/String;I)V
sput-object v0, Lkotlinx/coroutines/channels/BufferOverflow;->DROP_LATEST:Lkotlinx/coroutines/channels/BufferOverflow;
invoke-static {}, Lkotlinx/coroutines/channels/BufferOverflow;->$values()[Lkotlinx/coroutines/channels/BufferOverflow;
move-result-object v0
sput-object v0, Lkotlinx/coroutines/channels/BufferOverflow;->$VALUES:[Lkotlinx/coroutines/channels/BufferOverflow;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 17
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lkotlinx/coroutines/channels/BufferOverflow;
.locals 1
const-class v0, Lkotlinx/coroutines/channels/BufferOverflow;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lkotlinx/coroutines/channels/BufferOverflow;
return-object p0
.end method
.method public static values()[Lkotlinx/coroutines/channels/BufferOverflow;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferOverflow;->$VALUES:[Lkotlinx/coroutines/channels/BufferOverflow;
invoke-virtual {v0}, [Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lkotlinx/coroutines/channels/BufferOverflow;
return-object v0
.end method

View File

@@ -0,0 +1,823 @@
.class public final Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lkotlinx/coroutines/channels/ChannelIterator;
.implements Lkotlinx/coroutines/Waiter;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lkotlinx/coroutines/channels/BufferedChannel;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "BufferedChannelIterator"
.end annotation
# instance fields
.field public continuation:Lkotlinx/coroutines/CancellableContinuationImpl;
.field public receiveResult:Ljava/lang/Object;
.field public final synthetic this$0:Lkotlinx/coroutines/channels/BufferedChannel;
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/channels/BufferedChannel;)V
.locals 0
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
.line 1573
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 1579
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getNO_RECEIVE_RESULT$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object p1
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->receiveResult:Ljava/lang/Object;
return-void
.end method
.method public static final synthetic access$onClosedHasNextNoWaiterSuspend(Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;)V
.locals 0
.line 1573
invoke-virtual {p0}, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->onClosedHasNextNoWaiterSuspend()V
return-void
.end method
.method public static final synthetic access$setContinuation$p(Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;Lkotlinx/coroutines/CancellableContinuationImpl;)V
.locals 0
.line 1573
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->continuation:Lkotlinx/coroutines/CancellableContinuationImpl;
return-void
.end method
.method public static final synthetic access$setReceiveResult$p(Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;Ljava/lang/Object;)V
.locals 0
.line 1573
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->receiveResult:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public hasNext(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 14
iget-object v6, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
const/4 v7, 0x0
.line 1590
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannel;->access$getReceiveSegment$FU$p()Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
move-result-object v0
.line 886
invoke-virtual {v0, v6}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lkotlinx/coroutines/channels/ChannelSegment;
.line 890
:goto_0
invoke-virtual {v6}, Lkotlinx/coroutines/channels/BufferedChannel;->isClosedForReceive()Z
move-result v1
if-eqz v1, :cond_0
.line 1605
invoke-virtual {p0}, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->onClosedHasNext()Z
move-result p1
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
goto :goto_2
.line 890
:cond_0
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannel;->access$getReceivers$FU$p()Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
move-result-object v1
.line 893
invoke-virtual {v1, v6}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->getAndIncrement(Ljava/lang/Object;)J
move-result-wide v11
.line 895
sget v1, Lkotlinx/coroutines/channels/BufferedChannelKt;->SEGMENT_SIZE:I
int-to-long v2, v1
div-long v2, v11, v2
int-to-long v4, v1
.line 896
rem-long v4, v11, v4
long-to-int v10, v4
.line 899
iget-wide v4, v0, Lkotlinx/coroutines/internal/Segment;->id:J
cmp-long v1, v4, v2
if-eqz v1, :cond_2
.line 901
invoke-static {v6, v2, v3, v0}, Lkotlinx/coroutines/channels/BufferedChannel;->access$findSegmentReceive(Lkotlinx/coroutines/channels/BufferedChannel;JLkotlinx/coroutines/channels/ChannelSegment;)Lkotlinx/coroutines/channels/ChannelSegment;
move-result-object v1
if-nez v1, :cond_1
goto :goto_0
:cond_1
move-object v9, v1
goto :goto_1
:cond_2
move-object v9, v0
:goto_1
move-object v0, v6
move-object v1, v9
move v2, v10
move-wide v3, v11
move-object v5, v7
.line 908
invoke-static/range {v0 .. v5}, Lkotlinx/coroutines/channels/BufferedChannel;->access$updateCellReceive(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlinx/coroutines/channels/ChannelSegment;IJLjava/lang/Object;)Ljava/lang/Object;
move-result-object v0
.line 910
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getSUSPEND$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v1
if-eq v0, v1, :cond_6
.line 916
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getFAILED$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v1
if-ne v0, v1, :cond_4
.line 923
invoke-virtual {v6}, Lkotlinx/coroutines/channels/BufferedChannel;->getSendersCounter$kotlinx_coroutines_core()J
move-result-wide v0
cmp-long v0, v11, v0
if-gez v0, :cond_3
invoke-virtual {v9}, Lkotlinx/coroutines/internal/ConcurrentLinkedListNode;->cleanPrev()V
:cond_3
move-object v0, v9
goto :goto_0
.line 926
:cond_4
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getSUSPEND_NO_WAITER$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v1
if-ne v0, v1, :cond_5
move-object v8, p0
move-object v13, p1
.line 1609
invoke-virtual/range {v8 .. v13}, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->hasNextOnNoWaiterSuspend(Lkotlinx/coroutines/channels/ChannelSegment;IJLkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.line 935
:cond_5
invoke-virtual {v9}, Lkotlinx/coroutines/internal/ConcurrentLinkedListNode;->cleanPrev()V
iput-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->receiveResult:Ljava/lang/Object;
const/4 p1, 0x1
.line 1600
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
:goto_2
return-object p1
.line 914
:cond_6
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "unreachable"
.line 1603
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final hasNextOnNoWaiterSuspend(Lkotlinx/coroutines/channels/ChannelSegment;IJLkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 10
iget-object v6, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
.line 333
invoke-static {p5}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object v0
invoke-static {v0}, Lkotlinx/coroutines/CancellableContinuationKt;->getOrCreateCancellableContinuation(Lkotlin/coroutines/Continuation;)Lkotlinx/coroutines/CancellableContinuationImpl;
move-result-object v7
.line 1626
:try_start_0
invoke-static {p0, v7}, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->access$setContinuation$p(Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;Lkotlinx/coroutines/CancellableContinuationImpl;)V
move-object v0, v6
move-object v1, p1
move v2, p2
move-wide v3, p3
move-object v5, p0
.line 964
invoke-static/range {v0 .. v5}, Lkotlinx/coroutines/channels/BufferedChannel;->access$updateCellReceive(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlinx/coroutines/channels/ChannelSegment;IJLjava/lang/Object;)Ljava/lang/Object;
move-result-object v0
.line 966
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getSUSPEND$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v1
if-ne v0, v1, :cond_0
.line 967
invoke-static {v6, p0, p1, p2}, Lkotlinx/coroutines/channels/BufferedChannel;->access$prepareReceiverForSuspension(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlinx/coroutines/Waiter;Lkotlinx/coroutines/channels/ChannelSegment;I)V
goto/16 :goto_2
:catchall_0
move-exception p1
goto/16 :goto_3
.line 969
:cond_0
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getFAILED$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object p2
const/4 v8, 0x1
const/4 v9, 0x0
if-ne v0, p2, :cond_a
.line 970
invoke-virtual {v6}, Lkotlinx/coroutines/channels/BufferedChannel;->getSendersCounter$kotlinx_coroutines_core()J
move-result-wide v0
cmp-long p2, p3, v0
if-gez p2, :cond_1
invoke-virtual {p1}, Lkotlinx/coroutines/internal/ConcurrentLinkedListNode;->cleanPrev()V
.line 858
:cond_1
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannel;->access$getReceiveSegment$FU$p()Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
move-result-object p1
.line 886
invoke-virtual {p1, v6}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lkotlinx/coroutines/channels/ChannelSegment;
.line 890
:cond_2
:goto_0
invoke-virtual {v6}, Lkotlinx/coroutines/channels/BufferedChannel;->isClosedForReceive()Z
move-result p2
if-eqz p2, :cond_3
.line 1641
invoke-static {p0}, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->access$onClosedHasNextNoWaiterSuspend(Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;)V
goto/16 :goto_2
.line 890
:cond_3
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannel;->access$getReceivers$FU$p()Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
move-result-object p2
.line 893
invoke-virtual {p2, v6}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->getAndIncrement(Ljava/lang/Object;)J
move-result-wide p2
.line 895
sget p4, Lkotlinx/coroutines/channels/BufferedChannelKt;->SEGMENT_SIZE:I
int-to-long v0, p4
div-long v0, p2, v0
int-to-long v2, p4
.line 896
rem-long v2, p2, v2
long-to-int p4, v2
.line 899
iget-wide v2, p1, Lkotlinx/coroutines/internal/Segment;->id:J
cmp-long v2, v2, v0
if-eqz v2, :cond_5
.line 901
invoke-static {v6, v0, v1, p1}, Lkotlinx/coroutines/channels/BufferedChannel;->access$findSegmentReceive(Lkotlinx/coroutines/channels/BufferedChannel;JLkotlinx/coroutines/channels/ChannelSegment;)Lkotlinx/coroutines/channels/ChannelSegment;
move-result-object v0
if-nez v0, :cond_4
goto :goto_0
:cond_4
move-object p1, v0
:cond_5
move-object v0, v6
move-object v1, p1
move v2, p4
move-wide v3, p2
move-object v5, p0
.line 908
invoke-static/range {v0 .. v5}, Lkotlinx/coroutines/channels/BufferedChannel;->access$updateCellReceive(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlinx/coroutines/channels/ChannelSegment;IJLjava/lang/Object;)Ljava/lang/Object;
move-result-object v0
.line 910
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getSUSPEND$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v1
if-ne v0, v1, :cond_6
.line 913
invoke-static {v6, p0, p1, p4}, Lkotlinx/coroutines/channels/BufferedChannel;->access$prepareReceiverForSuspension(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlinx/coroutines/Waiter;Lkotlinx/coroutines/channels/ChannelSegment;I)V
goto :goto_2
.line 916
:cond_6
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getFAILED$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object p4
if-ne v0, p4, :cond_7
.line 923
invoke-virtual {v6}, Lkotlinx/coroutines/channels/BufferedChannel;->getSendersCounter$kotlinx_coroutines_core()J
move-result-wide v0
cmp-long p2, p2, v0
if-gez p2, :cond_2
invoke-virtual {p1}, Lkotlinx/coroutines/internal/ConcurrentLinkedListNode;->cleanPrev()V
goto :goto_0
.line 926
:cond_7
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getSUSPEND_NO_WAITER$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object p2
if-eq v0, p2, :cond_9
.line 935
invoke-virtual {p1}, Lkotlinx/coroutines/internal/ConcurrentLinkedListNode;->cleanPrev()V
.line 1637
invoke-static {p0, v0}, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->access$setReceiveResult$p(Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;Ljava/lang/Object;)V
.line 1638
invoke-static {p0, v9}, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->access$setContinuation$p(Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;Lkotlinx/coroutines/CancellableContinuationImpl;)V
.line 1639
invoke-static {v8}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
iget-object p2, v6, Lkotlinx/coroutines/channels/BufferedChannel;->onUndeliveredElement:Lkotlin/jvm/functions/Function1;
if-eqz p2, :cond_8
invoke-virtual {v7}, Lkotlinx/coroutines/CancellableContinuationImpl;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object p3
invoke-static {p2, v0, p3}, Lkotlinx/coroutines/internal/OnUndeliveredElementKt;->bindCancellationFun(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlin/coroutines/CoroutineContext;)Lkotlin/jvm/functions/Function1;
move-result-object v9
:cond_8
:goto_1
invoke-virtual {v7, p1, v9}, Lkotlinx/coroutines/CancellableContinuationImpl;->resume(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V
goto :goto_2
.line 929
:cond_9
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "unexpected"
.line 882
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 979
:cond_a
invoke-virtual {p1}, Lkotlinx/coroutines/internal/ConcurrentLinkedListNode;->cleanPrev()V
.line 1637
invoke-static {p0, v0}, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->access$setReceiveResult$p(Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;Ljava/lang/Object;)V
.line 1638
invoke-static {p0, v9}, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->access$setContinuation$p(Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;Lkotlinx/coroutines/CancellableContinuationImpl;)V
.line 1639
invoke-static {v8}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
iget-object p2, v6, Lkotlinx/coroutines/channels/BufferedChannel;->onUndeliveredElement:Lkotlin/jvm/functions/Function1;
if-eqz p2, :cond_8
invoke-virtual {v7}, Lkotlinx/coroutines/CancellableContinuationImpl;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object p3
invoke-static {p2, v0, p3}, Lkotlinx/coroutines/internal/OnUndeliveredElementKt;->bindCancellationFun(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlin/coroutines/CoroutineContext;)Lkotlin/jvm/functions/Function1;
move-result-object v9
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_1
.line 342
:goto_2
invoke-virtual {v7}, Lkotlinx/coroutines/CancellableContinuationImpl;->getResult()Ljava/lang/Object;
move-result-object p1
.line 332
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object p2
if-ne p1, p2, :cond_b
invoke-static {p5}, Lkotlin/coroutines/jvm/internal/DebugProbesKt;->probeCoroutineSuspended(Lkotlin/coroutines/Continuation;)V
:cond_b
return-object p1
.line 339
:goto_3
invoke-virtual {v7}, Lkotlinx/coroutines/CancellableContinuationImpl;->releaseClaimedReusableContinuation$kotlinx_coroutines_core()V
.line 340
throw p1
.end method
.method public invokeOnCancellation(Lkotlinx/coroutines/internal/Segment;I)V
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->continuation:Lkotlinx/coroutines/CancellableContinuationImpl;
if-eqz v0, :cond_0
.line 1646
invoke-virtual {v0, p1, p2}, Lkotlinx/coroutines/CancellableContinuationImpl;->invokeOnCancellation(Lkotlinx/coroutines/internal/Segment;I)V
:cond_0
return-void
.end method
.method public next()Ljava/lang/Object;
.locals 2
iget-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->receiveResult:Ljava/lang/Object;
.line 1671
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getNO_RECEIVE_RESULT$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v1
if-eq v0, v1, :cond_1
.line 1672
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getNO_RECEIVE_RESULT$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v1
iput-object v1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->receiveResult:Ljava/lang/Object;
.line 1674
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->getCHANNEL_CLOSED()Lkotlinx/coroutines/internal/Symbol;
move-result-object v1
if-eq v0, v1, :cond_0
return-object v0
:cond_0
iget-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
invoke-static {v0}, Lkotlinx/coroutines/channels/BufferedChannel;->access$getReceiveException(Lkotlinx/coroutines/channels/BufferedChannel;)Ljava/lang/Throwable;
move-result-object v0
invoke-static {v0}, Lkotlinx/coroutines/internal/StackTraceRecoveryKt;->recoverStackTrace(Ljava/lang/Throwable;)Ljava/lang/Throwable;
move-result-object v0
throw v0
.line 1671
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "`hasNext()` has not been invoked"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final onClosedHasNext()Z
.locals 1
.line 1613
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->getCHANNEL_CLOSED()Lkotlinx/coroutines/internal/Symbol;
move-result-object v0
iput-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->receiveResult:Ljava/lang/Object;
iget-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
.line 1614
invoke-virtual {v0}, Lkotlinx/coroutines/channels/BufferedChannel;->getCloseCause()Ljava/lang/Throwable;
move-result-object v0
if-nez v0, :cond_0
const/4 v0, 0x0
return v0
.line 1615
:cond_0
invoke-static {v0}, Lkotlinx/coroutines/internal/StackTraceRecoveryKt;->recoverStackTrace(Ljava/lang/Throwable;)Ljava/lang/Throwable;
move-result-object v0
throw v0
.end method
.method public final onClosedHasNextNoWaiterSuspend()V
.locals 3
iget-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->continuation:Lkotlinx/coroutines/CancellableContinuationImpl;
.line 1652
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
const/4 v1, 0x0
iput-object v1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->continuation:Lkotlinx/coroutines/CancellableContinuationImpl;
.line 1655
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->getCHANNEL_CLOSED()Lkotlinx/coroutines/internal/Symbol;
move-result-object v1
iput-object v1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->receiveResult:Ljava/lang/Object;
iget-object v1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
.line 1659
invoke-virtual {v1}, Lkotlinx/coroutines/channels/BufferedChannel;->getCloseCause()Ljava/lang/Throwable;
move-result-object v1
if-nez v1, :cond_0
.line 1661
sget-object v1, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
sget-object v1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
invoke-static {v1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-interface {v0, v1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
goto :goto_0
.line 1663
:cond_0
sget-object v2, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
invoke-static {v1}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v1
invoke-static {v1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-interface {v0, v1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public final tryResumeHasNext(Ljava/lang/Object;)Z
.locals 4
iget-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->continuation:Lkotlinx/coroutines/CancellableContinuationImpl;
.line 1682
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
const/4 v1, 0x0
iput-object v1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->continuation:Lkotlinx/coroutines/CancellableContinuationImpl;
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->receiveResult:Ljava/lang/Object;
sget-object v2, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
iget-object v3, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
.line 1689
iget-object v3, v3, Lkotlinx/coroutines/channels/BufferedChannel;->onUndeliveredElement:Lkotlin/jvm/functions/Function1;
if-eqz v3, :cond_0
invoke-virtual {v0}, Lkotlinx/coroutines/CancellableContinuationImpl;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object v1
invoke-static {v3, p1, v1}, Lkotlinx/coroutines/internal/OnUndeliveredElementKt;->bindCancellationFun(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlin/coroutines/CoroutineContext;)Lkotlin/jvm/functions/Function1;
move-result-object v1
:cond_0
invoke-static {v0, v2, v1}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$tryResume0(Lkotlinx/coroutines/CancellableContinuation;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Z
move-result p1
return p1
.end method
.method public final tryResumeHasNextOnClosedChannel()V
.locals 3
iget-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->continuation:Lkotlinx/coroutines/CancellableContinuationImpl;
.line 1695
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
const/4 v1, 0x0
iput-object v1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->continuation:Lkotlinx/coroutines/CancellableContinuationImpl;
.line 1700
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->getCHANNEL_CLOSED()Lkotlinx/coroutines/internal/Symbol;
move-result-object v1
iput-object v1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->receiveResult:Ljava/lang/Object;
iget-object v1, p0, Lkotlinx/coroutines/channels/BufferedChannel$BufferedChannelIterator;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
.line 1704
invoke-virtual {v1}, Lkotlinx/coroutines/channels/BufferedChannel;->getCloseCause()Ljava/lang/Throwable;
move-result-object v1
if-nez v1, :cond_0
.line 1706
sget-object v1, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
sget-object v1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
invoke-static {v1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-interface {v0, v1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
goto :goto_0
.line 1708
:cond_0
sget-object v2, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
invoke-static {v1}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v1
invoke-static {v1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-interface {v0, v1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,78 @@
.class public final Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1;->invoke(Lkotlinx/coroutines/selects/SelectInstance;Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/jvm/functions/Function1;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic $element:Ljava/lang/Object;
.field public final synthetic this$0:Lkotlinx/coroutines/channels/BufferedChannel;
# direct methods
.method public constructor <init>(Ljava/lang/Object;Lkotlinx/coroutines/channels/BufferedChannel;Lkotlinx/coroutines/selects/SelectInstance;)V
.locals 0
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1$1;->$element:Ljava/lang/Object;
iput-object p2, p0, Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1$1;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1543
check-cast p1, Ljava/lang/Throwable;
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1$1;->invoke(Ljava/lang/Throwable;)V
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(Ljava/lang/Throwable;)V
.locals 1
iget-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1$1;->$element:Ljava/lang/Object;
.line 1543
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->getCHANNEL_CLOSED()Lkotlinx/coroutines/internal/Symbol;
move-result-object v0
if-ne p1, v0, :cond_0
return-void
:cond_0
iget-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1$1;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
iget-object p1, p1, Lkotlinx/coroutines/channels/BufferedChannel;->onUndeliveredElement:Lkotlin/jvm/functions/Function1;
const/4 p1, 0x0
throw p1
.end method

View File

@@ -0,0 +1,65 @@
.class public final Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function3;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlinx/coroutines/channels/BufferedChannel;-><init>(ILkotlin/jvm/functions/Function1;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lkotlinx/coroutines/channels/BufferedChannel;
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/channels/BufferedChannel;)V
.locals 0
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
const/4 p1, 0x3
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1542
invoke-static {p1}, Lcom/amazonaws/handlers/HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;->m(Ljava/lang/Object;)V
const/4 p1, 0x0
invoke-virtual {p0, p1, p2, p3}, Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1;->invoke(Lkotlinx/coroutines/selects/SelectInstance;Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/jvm/functions/Function1;
move-result-object p1
return-object p1
.end method
.method public final invoke(Lkotlinx/coroutines/selects/SelectInstance;Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/jvm/functions/Function1;
.locals 1
.line 1543
new-instance p2, Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1$1;
iget-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
invoke-direct {p2, p3, v0, p1}, Lkotlinx/coroutines/channels/BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$1$1$1;-><init>(Ljava/lang/Object;Lkotlinx/coroutines/channels/BufferedChannel;Lkotlinx/coroutines/selects/SelectInstance;)V
return-object p2
.end method

View File

@@ -0,0 +1,71 @@
.class public final Lkotlinx/coroutines/channels/BufferedChannel$receiveCatching$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlinx/coroutines/channels/BufferedChannel;->receiveCatching-JP2dKIU$suspendImpl(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public label:I
.field public synthetic result:Ljava/lang/Object;
.field public final synthetic this$0:Lkotlinx/coroutines/channels/BufferedChannel;
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlin/coroutines/Continuation;)V
.locals 0
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$receiveCatching$1;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$receiveCatching$1;->result:Ljava/lang/Object;
iget p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$receiveCatching$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$receiveCatching$1;->label:I
iget-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$receiveCatching$1;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
invoke-static {p1, p0}, Lkotlinx/coroutines/channels/BufferedChannel;->receiveCatching-JP2dKIU$suspendImpl(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
if-ne p1, v0, :cond_0
return-object p1
:cond_0
invoke-static {p1}, Lkotlinx/coroutines/channels/ChannelResult;->box-impl(Ljava/lang/Object;)Lkotlinx/coroutines/channels/ChannelResult;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,87 @@
.class public final Lkotlinx/coroutines/channels/BufferedChannel$receiveCatchingOnNoWaiterSuspend$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlinx/coroutines/channels/BufferedChannel;->receiveCatchingOnNoWaiterSuspend-GKJJFZk(Lkotlinx/coroutines/channels/ChannelSegment;IJLkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public I$0:I
.field public J$0:J
.field public L$0:Ljava/lang/Object;
.field public L$1:Ljava/lang/Object;
.field public label:I
.field public synthetic result:Ljava/lang/Object;
.field public final synthetic this$0:Lkotlinx/coroutines/channels/BufferedChannel;
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlin/coroutines/Continuation;)V
.locals 0
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$receiveCatchingOnNoWaiterSuspend$1;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 6
iput-object p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$receiveCatchingOnNoWaiterSuspend$1;->result:Ljava/lang/Object;
iget p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$receiveCatchingOnNoWaiterSuspend$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Lkotlinx/coroutines/channels/BufferedChannel$receiveCatchingOnNoWaiterSuspend$1;->label:I
iget-object v0, p0, Lkotlinx/coroutines/channels/BufferedChannel$receiveCatchingOnNoWaiterSuspend$1;->this$0:Lkotlinx/coroutines/channels/BufferedChannel;
const/4 v1, 0x0
const/4 v2, 0x0
const-wide/16 v3, 0x0
move-object v5, p0
invoke-static/range {v0 .. v5}, Lkotlinx/coroutines/channels/BufferedChannel;->access$receiveCatchingOnNoWaiterSuspend-GKJJFZk(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlinx/coroutines/channels/ChannelSegment;IJLkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
if-ne p1, v0, :cond_0
return-object p1
:cond_0
invoke-static {p1}, Lkotlinx/coroutines/channels/ChannelResult;->box-impl(Ljava/lang/Object;)Lkotlinx/coroutines/channels/ChannelResult;
move-result-object p1
return-object p1
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,87 @@
.class public final synthetic Lkotlinx/coroutines/channels/BufferedChannelKt$createSegmentFunction$1;
.super Lkotlin/jvm/internal/FunctionReferenceImpl;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlinx/coroutines/channels/BufferedChannelKt;->createSegmentFunction()Lkotlin/reflect/KFunction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1001
name = null
.end annotation
# static fields
.field public static final INSTANCE:Lkotlinx/coroutines/channels/BufferedChannelKt$createSegmentFunction$1;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lkotlinx/coroutines/channels/BufferedChannelKt$createSegmentFunction$1;
invoke-direct {v0}, Lkotlinx/coroutines/channels/BufferedChannelKt$createSegmentFunction$1;-><init>()V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt$createSegmentFunction$1;->INSTANCE:Lkotlinx/coroutines/channels/BufferedChannelKt$createSegmentFunction$1;
return-void
.end method
.method public constructor <init>()V
.locals 6
const/4 v1, 0x2
const-class v2, Lkotlinx/coroutines/channels/BufferedChannelKt;
const-string v3, "createSegment"
const-string v4, "createSegment(JLkotlinx/coroutines/channels/ChannelSegment;)Lkotlinx/coroutines/channels/ChannelSegment;"
const/4 v5, 0x1
move-object v0, p0
invoke-direct/range {v0 .. v5}, Lkotlin/jvm/internal/FunctionReferenceImpl;-><init>(ILjava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
.line 2863
check-cast p1, Ljava/lang/Number;
invoke-virtual {p1}, Ljava/lang/Number;->longValue()J
move-result-wide v0
check-cast p2, Lkotlinx/coroutines/channels/ChannelSegment;
invoke-virtual {p0, v0, v1, p2}, Lkotlinx/coroutines/channels/BufferedChannelKt$createSegmentFunction$1;->invoke(JLkotlinx/coroutines/channels/ChannelSegment;)Lkotlinx/coroutines/channels/ChannelSegment;
move-result-object p1
return-object p1
.end method
.method public final invoke(JLkotlinx/coroutines/channels/ChannelSegment;)Lkotlinx/coroutines/channels/ChannelSegment;
.locals 0
.line 2863
invoke-static {p1, p2, p3}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$createSegment(JLkotlinx/coroutines/channels/ChannelSegment;)Lkotlinx/coroutines/channels/ChannelSegment;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,576 @@
.class public abstract Lkotlinx/coroutines/channels/BufferedChannelKt;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final BUFFERED:Lkotlinx/coroutines/internal/Symbol;
.field public static final CHANNEL_CLOSED:Lkotlinx/coroutines/internal/Symbol;
.field public static final CLOSE_HANDLER_CLOSED:Lkotlinx/coroutines/internal/Symbol;
.field public static final CLOSE_HANDLER_INVOKED:Lkotlinx/coroutines/internal/Symbol;
.field public static final DONE_RCV:Lkotlinx/coroutines/internal/Symbol;
.field public static final EXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS:I
.field public static final FAILED:Lkotlinx/coroutines/internal/Symbol;
.field public static final INTERRUPTED_RCV:Lkotlinx/coroutines/internal/Symbol;
.field public static final INTERRUPTED_SEND:Lkotlinx/coroutines/internal/Symbol;
.field public static final IN_BUFFER:Lkotlinx/coroutines/internal/Symbol;
.field public static final NO_CLOSE_CAUSE:Lkotlinx/coroutines/internal/Symbol;
.field public static final NO_RECEIVE_RESULT:Lkotlinx/coroutines/internal/Symbol;
.field public static final NULL_SEGMENT:Lkotlinx/coroutines/channels/ChannelSegment;
.field public static final POISONED:Lkotlinx/coroutines/internal/Symbol;
.field public static final RESUMING_BY_EB:Lkotlinx/coroutines/internal/Symbol;
.field public static final RESUMING_BY_RCV:Lkotlinx/coroutines/internal/Symbol;
.field public static final SEGMENT_SIZE:I
.field public static final SUSPEND:Lkotlinx/coroutines/internal/Symbol;
.field public static final SUSPEND_NO_WAITER:Lkotlinx/coroutines/internal/Symbol;
# direct methods
.method static constructor <clinit>()V
.locals 13
.line 2871
new-instance v6, Lkotlinx/coroutines/channels/ChannelSegment;
const-wide/16 v1, -0x1
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
move-object v0, v6
invoke-direct/range {v0 .. v5}, Lkotlinx/coroutines/channels/ChannelSegment;-><init>(JLkotlinx/coroutines/channels/ChannelSegment;Lkotlinx/coroutines/channels/BufferedChannel;I)V
sput-object v6, Lkotlinx/coroutines/channels/BufferedChannelKt;->NULL_SEGMENT:Lkotlinx/coroutines/channels/ChannelSegment;
const-string v7, "kotlinx.coroutines.bufferedChannel.segmentSize"
const/16 v8, 0x20
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0xc
const/4 v12, 0x0
.line 2877
invoke-static/range {v7 .. v12}, Lkotlinx/coroutines/internal/SystemPropsKt;->systemProp$default(Ljava/lang/String;IIIILjava/lang/Object;)I
move-result v0
sput v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->SEGMENT_SIZE:I
const-string v1, "kotlinx.coroutines.bufferedChannel.expandBufferCompletionWaitIterations"
const/16 v2, 0x2710
const/4 v3, 0x0
const/4 v4, 0x0
const/16 v5, 0xc
const/4 v6, 0x0
.line 2884
invoke-static/range {v1 .. v6}, Lkotlinx/coroutines/internal/SystemPropsKt;->systemProp$default(Ljava/lang/String;IIIILjava/lang/Object;)I
move-result v0
sput v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->EXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS:I
.line 2921
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "BUFFERED"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->BUFFERED:Lkotlinx/coroutines/internal/Symbol;
.line 2924
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "SHOULD_BUFFER"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->IN_BUFFER:Lkotlinx/coroutines/internal/Symbol;
.line 2929
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "S_RESUMING_BY_RCV"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->RESUMING_BY_RCV:Lkotlinx/coroutines/internal/Symbol;
.line 2934
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "RESUMING_BY_EB"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->RESUMING_BY_EB:Lkotlinx/coroutines/internal/Symbol;
.line 2939
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "POISONED"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->POISONED:Lkotlinx/coroutines/internal/Symbol;
.line 2942
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "DONE_RCV"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->DONE_RCV:Lkotlinx/coroutines/internal/Symbol;
.line 2944
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "INTERRUPTED_SEND"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->INTERRUPTED_SEND:Lkotlinx/coroutines/internal/Symbol;
.line 2946
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "INTERRUPTED_RCV"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->INTERRUPTED_RCV:Lkotlinx/coroutines/internal/Symbol;
.line 2948
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "CHANNEL_CLOSED"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->CHANNEL_CLOSED:Lkotlinx/coroutines/internal/Symbol;
.line 2978
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "SUSPEND"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->SUSPEND:Lkotlinx/coroutines/internal/Symbol;
.line 2979
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "SUSPEND_NO_WAITER"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->SUSPEND_NO_WAITER:Lkotlinx/coroutines/internal/Symbol;
.line 2980
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "FAILED"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->FAILED:Lkotlinx/coroutines/internal/Symbol;
.line 2996
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "NO_RECEIVE_RESULT"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->NO_RECEIVE_RESULT:Lkotlinx/coroutines/internal/Symbol;
.line 3003
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "CLOSE_HANDLER_CLOSED"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->CLOSE_HANDLER_CLOSED:Lkotlinx/coroutines/internal/Symbol;
.line 3004
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "CLOSE_HANDLER_INVOKED"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->CLOSE_HANDLER_INVOKED:Lkotlinx/coroutines/internal/Symbol;
.line 3011
new-instance v0, Lkotlinx/coroutines/internal/Symbol;
const-string v1, "NO_CLOSE_CAUSE"
invoke-direct {v0, v1}, Lkotlinx/coroutines/internal/Symbol;-><init>(Ljava/lang/String;)V
sput-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->NO_CLOSE_CAUSE:Lkotlinx/coroutines/internal/Symbol;
return-void
.end method
.method public static final synthetic access$constructEBCompletedAndPauseFlag(JZ)J
.locals 0
.line 1
invoke-static {p0, p1, p2}, Lkotlinx/coroutines/channels/BufferedChannelKt;->constructEBCompletedAndPauseFlag(JZ)J
move-result-wide p0
return-wide p0
.end method
.method public static final synthetic access$constructSendersAndCloseStatus(JI)J
.locals 0
.line 1
invoke-static {p0, p1, p2}, Lkotlinx/coroutines/channels/BufferedChannelKt;->constructSendersAndCloseStatus(JI)J
move-result-wide p0
return-wide p0
.end method
.method public static final synthetic access$createSegment(JLkotlinx/coroutines/channels/ChannelSegment;)Lkotlinx/coroutines/channels/ChannelSegment;
.locals 0
.line 1
invoke-static {p0, p1, p2}, Lkotlinx/coroutines/channels/BufferedChannelKt;->createSegment(JLkotlinx/coroutines/channels/ChannelSegment;)Lkotlinx/coroutines/channels/ChannelSegment;
move-result-object p0
return-object p0
.end method
.method public static final synthetic access$getCLOSE_HANDLER_CLOSED$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->CLOSE_HANDLER_CLOSED:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getCLOSE_HANDLER_INVOKED$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->CLOSE_HANDLER_INVOKED:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getDONE_RCV$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->DONE_RCV:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getEXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS$p()I
.locals 1
sget v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->EXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS:I
return v0
.end method
.method public static final synthetic access$getFAILED$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->FAILED:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getINTERRUPTED_RCV$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->INTERRUPTED_RCV:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getINTERRUPTED_SEND$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->INTERRUPTED_SEND:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getIN_BUFFER$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->IN_BUFFER:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getNO_CLOSE_CAUSE$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->NO_CLOSE_CAUSE:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getNO_RECEIVE_RESULT$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->NO_RECEIVE_RESULT:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getNULL_SEGMENT$p()Lkotlinx/coroutines/channels/ChannelSegment;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->NULL_SEGMENT:Lkotlinx/coroutines/channels/ChannelSegment;
return-object v0
.end method
.method public static final synthetic access$getPOISONED$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->POISONED:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getRESUMING_BY_EB$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->RESUMING_BY_EB:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getRESUMING_BY_RCV$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->RESUMING_BY_RCV:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getSUSPEND$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->SUSPEND:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$getSUSPEND_NO_WAITER$p()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->SUSPEND_NO_WAITER:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final synthetic access$initialBufferEnd(I)J
.locals 2
.line 1
invoke-static {p0}, Lkotlinx/coroutines/channels/BufferedChannelKt;->initialBufferEnd(I)J
move-result-wide v0
return-wide v0
.end method
.method public static final synthetic access$tryResume0(Lkotlinx/coroutines/CancellableContinuation;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Z
.locals 0
.line 1
invoke-static {p0, p1, p2}, Lkotlinx/coroutines/channels/BufferedChannelKt;->tryResume0(Lkotlinx/coroutines/CancellableContinuation;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Z
move-result p0
return p0
.end method
.method public static final constructEBCompletedAndPauseFlag(JZ)J
.locals 2
if-eqz p2, :cond_0
const-wide/high16 v0, 0x4000000000000000L # 2.0
goto :goto_0
:cond_0
const-wide/16 v0, 0x0
:goto_0
add-long/2addr v0, p0
return-wide v0
.end method
.method public static final constructSendersAndCloseStatus(JI)J
.locals 2
int-to-long v0, p2
const/16 p2, 0x3c
shl-long/2addr v0, p2
add-long/2addr v0, p0
return-wide v0
.end method
.method public static final createSegment(JLkotlinx/coroutines/channels/ChannelSegment;)Lkotlinx/coroutines/channels/ChannelSegment;
.locals 7
.line 2865
new-instance v6, Lkotlinx/coroutines/channels/ChannelSegment;
.line 2868
invoke-virtual {p2}, Lkotlinx/coroutines/channels/ChannelSegment;->getChannel()Lkotlinx/coroutines/channels/BufferedChannel;
move-result-object v4
const/4 v5, 0x0
move-object v0, v6
move-wide v1, p0
move-object v3, p2
.line 2865
invoke-direct/range {v0 .. v5}, Lkotlinx/coroutines/channels/ChannelSegment;-><init>(JLkotlinx/coroutines/channels/ChannelSegment;Lkotlinx/coroutines/channels/BufferedChannel;I)V
return-object v6
.end method
.method public static final createSegmentFunction()Lkotlin/reflect/KFunction;
.locals 1
.line 2863
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt$createSegmentFunction$1;->INSTANCE:Lkotlinx/coroutines/channels/BufferedChannelKt$createSegmentFunction$1;
return-object v0
.end method
.method public static final getCHANNEL_CLOSED()Lkotlinx/coroutines/internal/Symbol;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->CHANNEL_CLOSED:Lkotlinx/coroutines/internal/Symbol;
return-object v0
.end method
.method public static final initialBufferEnd(I)J
.locals 2
if-eqz p0, :cond_1
const v0, 0x7fffffff
if-eq p0, v0, :cond_0
int-to-long v0, p0
goto :goto_0
:cond_0
const-wide v0, 0x7fffffffffffffffL
goto :goto_0
:cond_1
const-wide/16 v0, 0x0
:goto_0
return-wide v0
.end method
.method public static final tryResume0(Lkotlinx/coroutines/CancellableContinuation;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Z
.locals 1
const/4 v0, 0x0
.line 2894
invoke-interface {p0, p1, v0, p2}, Lkotlinx/coroutines/CancellableContinuation;->tryResume(Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_0
.line 2896
invoke-interface {p0, p1}, Lkotlinx/coroutines/CancellableContinuation;->completeResume(Ljava/lang/Object;)V
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public static synthetic tryResume0$default(Lkotlinx/coroutines/CancellableContinuation;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Z
.locals 0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_0
const/4 p2, 0x0
.line 2890
:cond_0
invoke-static {p0, p1, p2}, Lkotlinx/coroutines/channels/BufferedChannelKt;->tryResume0(Lkotlinx/coroutines/CancellableContinuation;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Z
move-result p0
return p0
.end method

View File

@@ -0,0 +1,68 @@
.class public final Lkotlinx/coroutines/channels/Channel$Factory;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lkotlinx/coroutines/channels/Channel;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Factory"
.end annotation
# static fields
.field public static final synthetic $$INSTANCE:Lkotlinx/coroutines/channels/Channel$Factory;
.field public static final CHANNEL_DEFAULT_CAPACITY:I
# direct methods
.method static constructor <clinit>()V
.locals 4
new-instance v0, Lkotlinx/coroutines/channels/Channel$Factory;
invoke-direct {v0}, Lkotlinx/coroutines/channels/Channel$Factory;-><init>()V
sput-object v0, Lkotlinx/coroutines/channels/Channel$Factory;->$$INSTANCE:Lkotlinx/coroutines/channels/Channel$Factory;
const/4 v0, 0x1
const v1, 0x7ffffffe
const-string v2, "kotlinx.coroutines.channels.defaultBuffer"
const/16 v3, 0x40
.line 754
invoke-static {v2, v3, v0, v1}, Lkotlinx/coroutines/internal/SystemPropsKt;->systemProp(Ljava/lang/String;III)I
move-result v0
sput v0, Lkotlinx/coroutines/channels/Channel$Factory;->CHANNEL_DEFAULT_CAPACITY:I
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 720
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final getCHANNEL_DEFAULT_CAPACITY$kotlinx_coroutines_core()I
.locals 1
sget v0, Lkotlinx/coroutines/channels/Channel$Factory;->CHANNEL_DEFAULT_CAPACITY:I
return v0
.end method

View File

@@ -0,0 +1,31 @@
.class public interface abstract Lkotlinx/coroutines/channels/Channel;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lkotlinx/coroutines/channels/SendChannel;
.implements Lkotlinx/coroutines/channels/ReceiveChannel;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlinx/coroutines/channels/Channel$Factory;
}
.end annotation
# static fields
.field public static final Factory:Lkotlinx/coroutines/channels/Channel$Factory;
# direct methods
.method static constructor <clinit>()V
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/Channel$Factory;->$$INSTANCE:Lkotlinx/coroutines/channels/Channel$Factory;
sput-object v0, Lkotlinx/coroutines/channels/Channel;->Factory:Lkotlinx/coroutines/channels/Channel$Factory;
return-void
.end method

View File

@@ -0,0 +1,203 @@
.class public abstract Lkotlinx/coroutines/channels/ChannelCoroutine;
.super Lkotlinx/coroutines/AbstractCoroutine;
.source "SourceFile"
# interfaces
.implements Lkotlinx/coroutines/channels/Channel;
# instance fields
.field public final _channel:Lkotlinx/coroutines/channels/Channel;
# direct methods
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/channels/Channel;ZZ)V
.locals 0
.line 15
invoke-direct {p0, p1, p3, p4}, Lkotlinx/coroutines/AbstractCoroutine;-><init>(Lkotlin/coroutines/CoroutineContext;ZZ)V
iput-object p2, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
return-void
.end method
# virtual methods
.method public final cancel(Ljava/util/concurrent/CancellationException;)V
.locals 2
.line 31
invoke-virtual {p0}, Lkotlinx/coroutines/JobSupport;->isCancelled()Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
if-nez p1, :cond_1
.line 707
new-instance p1, Lkotlinx/coroutines/JobCancellationException;
invoke-static {p0}, Lkotlinx/coroutines/JobSupport;->access$cancellationExceptionMessage(Lkotlinx/coroutines/JobSupport;)Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
invoke-direct {p1, v0, v1, p0}, Lkotlinx/coroutines/JobCancellationException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lkotlinx/coroutines/Job;)V
.line 32
:cond_1
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ChannelCoroutine;->cancelInternal(Ljava/lang/Throwable;)V
return-void
.end method
.method public cancelInternal(Ljava/lang/Throwable;)V
.locals 2
const/4 v0, 0x0
const/4 v1, 0x1
.line 36
invoke-static {p0, p1, v0, v1, v0}, Lkotlinx/coroutines/JobSupport;->toCancellationException$default(Lkotlinx/coroutines/JobSupport;Ljava/lang/Throwable;Ljava/lang/String;ILjava/lang/Object;)Ljava/util/concurrent/CancellationException;
move-result-object p1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
.line 37
invoke-interface {v0, p1}, Lkotlinx/coroutines/channels/ReceiveChannel;->cancel(Ljava/util/concurrent/CancellationException;)V
.line 38
invoke-virtual {p0, p1}, Lkotlinx/coroutines/JobSupport;->cancelCoroutine(Ljava/lang/Throwable;)Z
return-void
.end method
.method public close(Ljava/lang/Throwable;)Z
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
invoke-interface {v0, p1}, Lkotlinx/coroutines/channels/SendChannel;->close(Ljava/lang/Throwable;)Z
move-result p1
return p1
.end method
.method public final getChannel()Lkotlinx/coroutines/channels/Channel;
.locals 0
return-object p0
.end method
.method public final get_channel()Lkotlinx/coroutines/channels/Channel;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
return-object v0
.end method
.method public invokeOnClose(Lkotlin/jvm/functions/Function1;)V
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
invoke-interface {v0, p1}, Lkotlinx/coroutines/channels/SendChannel;->invokeOnClose(Lkotlin/jvm/functions/Function1;)V
return-void
.end method
.method public isClosedForSend()Z
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
invoke-interface {v0}, Lkotlinx/coroutines/channels/SendChannel;->isClosedForSend()Z
move-result v0
return v0
.end method
.method public iterator()Lkotlinx/coroutines/channels/ChannelIterator;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
invoke-interface {v0}, Lkotlinx/coroutines/channels/ReceiveChannel;->iterator()Lkotlinx/coroutines/channels/ChannelIterator;
move-result-object v0
return-object v0
.end method
.method public receive(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
invoke-interface {v0, p1}, Lkotlinx/coroutines/channels/ReceiveChannel;->receive(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public receiveCatching-JP2dKIU(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
invoke-interface {v0, p1}, Lkotlinx/coroutines/channels/ReceiveChannel;->receiveCatching-JP2dKIU(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
return-object p1
.end method
.method public send(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
invoke-interface {v0, p1, p2}, Lkotlinx/coroutines/channels/SendChannel;->send(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public tryReceive-PtdJZtk()Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
invoke-interface {v0}, Lkotlinx/coroutines/channels/ReceiveChannel;->tryReceive-PtdJZtk()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public trySend-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelCoroutine;->_channel:Lkotlinx/coroutines/channels/Channel;
invoke-interface {v0, p1}, Lkotlinx/coroutines/channels/SendChannel;->trySend-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,11 @@
.class public interface abstract Lkotlinx/coroutines/channels/ChannelIterator;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract hasNext(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end method
.method public abstract next()Ljava/lang/Object;
.end method

View File

@@ -0,0 +1,171 @@
.class public abstract Lkotlinx/coroutines/channels/ChannelKt;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final Channel(ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/channels/Channel;
.locals 2
const/4 v0, -0x2
const/4 v1, 0x1
if-eq p0, v0, :cond_6
const/4 v0, -0x1
if-eq p0, v0, :cond_4
if-eqz p0, :cond_2
const v0, 0x7fffffff
if-eq p0, v0, :cond_1
.line 797
sget-object v0, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
if-ne p1, v0, :cond_0
new-instance p1, Lkotlinx/coroutines/channels/BufferedChannel;
invoke-direct {p1, p0, p2}, Lkotlinx/coroutines/channels/BufferedChannel;-><init>(ILkotlin/jvm/functions/Function1;)V
goto :goto_1
.line 798
:cond_0
new-instance v0, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;
invoke-direct {v0, p0, p1, p2}, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;-><init>(ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;)V
move-object p1, v0
goto :goto_1
.line 791
:cond_1
new-instance p1, Lkotlinx/coroutines/channels/BufferedChannel;
invoke-direct {p1, v0, p2}, Lkotlinx/coroutines/channels/BufferedChannel;-><init>(ILkotlin/jvm/functions/Function1;)V
goto :goto_1
.line 780
:cond_2
sget-object p0, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
if-ne p1, p0, :cond_3
.line 781
new-instance p0, Lkotlinx/coroutines/channels/BufferedChannel;
const/4 p1, 0x0
invoke-direct {p0, p1, p2}, Lkotlinx/coroutines/channels/BufferedChannel;-><init>(ILkotlin/jvm/functions/Function1;)V
:goto_0
move-object p1, p0
goto :goto_1
.line 783
:cond_3
new-instance p0, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;
invoke-direct {p0, v1, p1, p2}, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;-><init>(ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;)V
goto :goto_0
.line 786
:cond_4
sget-object p0, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
if-ne p1, p0, :cond_5
.line 789
new-instance p1, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;
sget-object p0, Lkotlinx/coroutines/channels/BufferOverflow;->DROP_OLDEST:Lkotlinx/coroutines/channels/BufferOverflow;
invoke-direct {p1, v1, p0, p2}, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;-><init>(ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;)V
goto :goto_1
.line 786
:cond_5
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "CONFLATED capacity cannot be used with non-default onBufferOverflow"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.line 793
:cond_6
sget-object p0, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
if-ne p1, p0, :cond_7
new-instance p0, Lkotlinx/coroutines/channels/BufferedChannel;
sget-object p1, Lkotlinx/coroutines/channels/Channel;->Factory:Lkotlinx/coroutines/channels/Channel$Factory;
invoke-virtual {p1}, Lkotlinx/coroutines/channels/Channel$Factory;->getCHANNEL_DEFAULT_CAPACITY$kotlinx_coroutines_core()I
move-result p1
invoke-direct {p0, p1, p2}, Lkotlinx/coroutines/channels/BufferedChannel;-><init>(ILkotlin/jvm/functions/Function1;)V
goto :goto_0
.line 794
:cond_7
new-instance p0, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;
invoke-direct {p0, v1, p1, p2}, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;-><init>(ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;)V
goto :goto_0
:goto_1
return-object p1
.end method
.method public static synthetic Channel$default(ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lkotlinx/coroutines/channels/Channel;
.locals 0
and-int/lit8 p4, p3, 0x1
if-eqz p4, :cond_0
const/4 p0, 0x0
:cond_0
and-int/lit8 p4, p3, 0x2
if-eqz p4, :cond_1
.line 775
sget-object p1, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
:cond_1
and-int/lit8 p3, p3, 0x4
if-eqz p3, :cond_2
const/4 p2, 0x0
.line 773
:cond_2
invoke-static {p0, p1, p2}, Lkotlinx/coroutines/channels/ChannelKt;->Channel(ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/channels/Channel;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,112 @@
.class public final Lkotlinx/coroutines/channels/ChannelResult$Closed;
.super Lkotlinx/coroutines/channels/ChannelResult$Failed;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lkotlinx/coroutines/channels/ChannelResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Closed"
.end annotation
# instance fields
.field public final cause:Ljava/lang/Throwable;
# direct methods
.method public constructor <init>(Ljava/lang/Throwable;)V
.locals 0
.line 464
invoke-direct {p0}, Lkotlinx/coroutines/channels/ChannelResult$Failed;-><init>()V
iput-object p1, p0, Lkotlinx/coroutines/channels/ChannelResult$Closed;->cause:Ljava/lang/Throwable;
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 1
.line 465
instance-of v0, p1, Lkotlinx/coroutines/channels/ChannelResult$Closed;
if-eqz v0, :cond_0
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelResult$Closed;->cause:Ljava/lang/Throwable;
check-cast p1, Lkotlinx/coroutines/channels/ChannelResult$Closed;
iget-object p1, p1, Lkotlinx/coroutines/channels/ChannelResult$Closed;->cause:Ljava/lang/Throwable;
invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public hashCode()I
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelResult$Closed;->cause:Ljava/lang/Throwable;
if-eqz v0, :cond_0
.line 466
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 467
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Closed("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lkotlinx/coroutines/channels/ChannelResult$Closed;->cause:Ljava/lang/Throwable;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,77 @@
.class public final Lkotlinx/coroutines/channels/ChannelResult$Companion;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lkotlinx/coroutines/channels/ChannelResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 470
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 0
invoke-direct {p0}, Lkotlinx/coroutines/channels/ChannelResult$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final closed-JP2dKIU(Ljava/lang/Throwable;)Ljava/lang/Object;
.locals 1
.line 484
new-instance v0, Lkotlinx/coroutines/channels/ChannelResult$Closed;
invoke-direct {v0, p1}, Lkotlinx/coroutines/channels/ChannelResult$Closed;-><init>(Ljava/lang/Throwable;)V
invoke-static {v0}, Lkotlinx/coroutines/channels/ChannelResult;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final failure-PtdJZtk()Ljava/lang/Object;
.locals 1
.line 480
invoke-static {}, Lkotlinx/coroutines/channels/ChannelResult;->access$getFailed$cp()Lkotlinx/coroutines/channels/ChannelResult$Failed;
move-result-object v0
invoke-static {v0}, Lkotlinx/coroutines/channels/ChannelResult;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public final success-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 476
invoke-static {p1}, Lkotlinx/coroutines/channels/ChannelResult;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,35 @@
.class public Lkotlinx/coroutines/channels/ChannelResult$Failed;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lkotlinx/coroutines/channels/ChannelResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Failed"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 460
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 1
const-string v0, "Failed"
return-object v0
.end method

View File

@@ -0,0 +1,281 @@
.class public final Lkotlinx/coroutines/channels/ChannelResult;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlinx/coroutines/channels/ChannelResult$Closed;,
Lkotlinx/coroutines/channels/ChannelResult$Companion;,
Lkotlinx/coroutines/channels/ChannelResult$Failed;
}
.end annotation
# static fields
.field public static final Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
.field public static final failed:Lkotlinx/coroutines/channels/ChannelResult$Failed;
# instance fields
.field public final holder:Ljava/lang/Object;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Lkotlinx/coroutines/channels/ChannelResult$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lkotlinx/coroutines/channels/ChannelResult$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
.line 472
new-instance v0, Lkotlinx/coroutines/channels/ChannelResult$Failed;
invoke-direct {v0}, Lkotlinx/coroutines/channels/ChannelResult$Failed;-><init>()V
sput-object v0, Lkotlinx/coroutines/channels/ChannelResult;->failed:Lkotlinx/coroutines/channels/ChannelResult$Failed;
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/Object;)V
.locals 0
.line 407
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lkotlinx/coroutines/channels/ChannelResult;->holder:Ljava/lang/Object;
return-void
.end method
.method public static final synthetic access$getFailed$cp()Lkotlinx/coroutines/channels/ChannelResult$Failed;
.locals 1
sget-object v0, Lkotlinx/coroutines/channels/ChannelResult;->failed:Lkotlinx/coroutines/channels/ChannelResult$Failed;
return-object v0
.end method
.method public static final synthetic box-impl(Ljava/lang/Object;)Lkotlinx/coroutines/channels/ChannelResult;
.locals 1
new-instance v0, Lkotlinx/coroutines/channels/ChannelResult;
invoke-direct {v0, p0}, Lkotlinx/coroutines/channels/ChannelResult;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
.method public static constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
return-object p0
.end method
.method public static equals-impl(Ljava/lang/Object;Ljava/lang/Object;)Z
.locals 2
instance-of v0, p1, Lkotlinx/coroutines/channels/ChannelResult;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
:cond_0
check-cast p1, Lkotlinx/coroutines/channels/ChannelResult;
invoke-virtual {p1}, Lkotlinx/coroutines/channels/ChannelResult;->unbox-impl()Ljava/lang/Object;
move-result-object p1
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-nez p0, :cond_1
return v1
:cond_1
const/4 p0, 0x1
return p0
.end method
.method public static final exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;
.locals 2
.line 458
instance-of v0, p0, Lkotlinx/coroutines/channels/ChannelResult$Closed;
const/4 v1, 0x0
if-eqz v0, :cond_0
check-cast p0, Lkotlinx/coroutines/channels/ChannelResult$Closed;
goto :goto_0
:cond_0
move-object p0, v1
:goto_0
if-eqz p0, :cond_1
iget-object v1, p0, Lkotlinx/coroutines/channels/ChannelResult$Closed;->cause:Ljava/lang/Throwable;
:cond_1
return-object v1
.end method
.method public static final getOrNull-impl(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.line 442
instance-of v0, p0, Lkotlinx/coroutines/channels/ChannelResult$Failed;
if-nez v0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return-object p0
.end method
.method public static hashCode-impl(Ljava/lang/Object;)I
.locals 0
if-nez p0, :cond_0
const/4 p0, 0x0
goto :goto_0
:cond_0
invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I
move-result p0
:goto_0
return p0
.end method
.method public static final isClosed-impl(Ljava/lang/Object;)Z
.locals 0
.line 436
instance-of p0, p0, Lkotlinx/coroutines/channels/ChannelResult$Closed;
return p0
.end method
.method public static final isSuccess-impl(Ljava/lang/Object;)Z
.locals 0
.line 414
instance-of p0, p0, Lkotlinx/coroutines/channels/ChannelResult$Failed;
xor-int/lit8 p0, p0, 0x1
return p0
.end method
.method public static toString-impl(Ljava/lang/Object;)Ljava/lang/String;
.locals 2
.line 489
instance-of v0, p0, Lkotlinx/coroutines/channels/ChannelResult$Closed;
if-eqz v0, :cond_0
check-cast p0, Lkotlinx/coroutines/channels/ChannelResult$Closed;
invoke-virtual {p0}, Lkotlinx/coroutines/channels/ChannelResult$Closed;->toString()Ljava/lang/String;
move-result-object p0
goto :goto_0
.line 490
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Value("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 p0, 0x29
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
:goto_0
return-object p0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelResult;->holder:Ljava/lang/Object;
invoke-static {v0, p1}, Lkotlinx/coroutines/channels/ChannelResult;->equals-impl(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public hashCode()I
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelResult;->holder:Ljava/lang/Object;
invoke-static {v0}, Lkotlinx/coroutines/channels/ChannelResult;->hashCode-impl(Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelResult;->holder:Ljava/lang/Object;
.line 487
invoke-static {v0}, Lkotlinx/coroutines/channels/ChannelResult;->toString-impl(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public final synthetic unbox-impl()Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelResult;->holder:Ljava/lang/Object;
return-object v0
.end method

View File

@@ -0,0 +1,32 @@
.class public abstract synthetic Lkotlinx/coroutines/channels/ChannelSegment$$ExternalSyntheticBackportWithForwarding0;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static synthetic m(Ljava/util/concurrent/atomic/AtomicReferenceArray;ILjava/lang/Object;Ljava/lang/Object;)Z
.locals 1
.line 0
:cond_0
invoke-virtual {p0, p1, p2, p3}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->compareAndSet(ILjava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/4 p0, 0x1
return p0
:cond_1
invoke-virtual {p0, p1}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;
move-result-object v0
if-eq v0, p2, :cond_0
const/4 p0, 0x0
return p0
.end method

View File

@@ -0,0 +1,414 @@
.class public final Lkotlinx/coroutines/channels/ChannelSegment;
.super Lkotlinx/coroutines/internal/Segment;
.source "SourceFile"
# instance fields
.field public final _channel:Lkotlinx/coroutines/channels/BufferedChannel;
.field public final data:Ljava/util/concurrent/atomic/AtomicReferenceArray;
# direct methods
.method public constructor <init>(JLkotlinx/coroutines/channels/ChannelSegment;Lkotlinx/coroutines/channels/BufferedChannel;I)V
.locals 0
.line 2741
invoke-direct {p0, p1, p2, p3, p5}, Lkotlinx/coroutines/internal/Segment;-><init>(JLkotlinx/coroutines/internal/Segment;I)V
iput-object p4, p0, Lkotlinx/coroutines/channels/ChannelSegment;->_channel:Lkotlinx/coroutines/channels/BufferedChannel;
.line 2742
new-instance p1, Ljava/util/concurrent/atomic/AtomicReferenceArray;
.line 2745
sget p2, Lkotlinx/coroutines/channels/BufferedChannelKt;->SEGMENT_SIZE:I
mul-int/lit8 p2, p2, 0x2
invoke-direct {p1, p2}, Ljava/util/concurrent/atomic/AtomicReferenceArray;-><init>(I)V
iput-object p1, p0, Lkotlinx/coroutines/channels/ChannelSegment;->data:Ljava/util/concurrent/atomic/AtomicReferenceArray;
return-void
.end method
# virtual methods
.method public final casState$kotlinx_coroutines_core(ILjava/lang/Object;Ljava/lang/Object;)Z
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelSegment;->data:Ljava/util/concurrent/atomic/AtomicReferenceArray;
mul-int/lit8 p1, p1, 0x2
add-int/lit8 p1, p1, 0x1
.line 2779
invoke-static {v0, p1, p2, p3}, Lkotlinx/coroutines/channels/ChannelSegment$$ExternalSyntheticBackportWithForwarding0;->m(Ljava/util/concurrent/atomic/AtomicReferenceArray;ILjava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public final cleanElement$kotlinx_coroutines_core(I)V
.locals 1
const/4 v0, 0x0
.line 2762
invoke-virtual {p0, p1, v0}, Lkotlinx/coroutines/channels/ChannelSegment;->setElementLazy(ILjava/lang/Object;)V
return-void
.end method
.method public final getAndSetState$kotlinx_coroutines_core(ILjava/lang/Object;)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelSegment;->data:Ljava/util/concurrent/atomic/AtomicReferenceArray;
mul-int/lit8 p1, p1, 0x2
add-int/lit8 p1, p1, 0x1
.line 2781
invoke-virtual {v0, p1, p2}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->getAndSet(ILjava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final getChannel()Lkotlinx/coroutines/channels/BufferedChannel;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelSegment;->_channel:Lkotlinx/coroutines/channels/BufferedChannel;
.line 2743
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
return-object v0
.end method
.method public final getElement$kotlinx_coroutines_core(I)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelSegment;->data:Ljava/util/concurrent/atomic/AtomicReferenceArray;
mul-int/lit8 p1, p1, 0x2
.line 2757
invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public getNumberOfSlots()I
.locals 1
.line 2746
sget v0, Lkotlinx/coroutines/channels/BufferedChannelKt;->SEGMENT_SIZE:I
return v0
.end method
.method public final getState$kotlinx_coroutines_core(I)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelSegment;->data:Ljava/util/concurrent/atomic/AtomicReferenceArray;
mul-int/lit8 p1, p1, 0x2
add-int/lit8 p1, p1, 0x1
.line 2773
invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public onCancellation(ILjava/lang/Throwable;Lkotlin/coroutines/CoroutineContext;)V
.locals 3
.line 2791
sget p2, Lkotlinx/coroutines/channels/BufferedChannelKt;->SEGMENT_SIZE:I
if-lt p1, p2, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
sub-int/2addr p1, p2
.line 2795
:cond_1
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ChannelSegment;->getElement$kotlinx_coroutines_core(I)Ljava/lang/Object;
move-result-object p2
.line 2800
:cond_2
:goto_1
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ChannelSegment;->getState$kotlinx_coroutines_core(I)Ljava/lang/Object;
move-result-object v1
.line 2803
instance-of v2, v1, Lkotlinx/coroutines/Waiter;
if-nez v2, :cond_b
instance-of v2, v1, Lkotlinx/coroutines/channels/WaiterEB;
if-eqz v2, :cond_3
goto :goto_4
.line 2824
:cond_3
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getINTERRUPTED_SEND$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v2
if-eq v1, v2, :cond_9
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getINTERRUPTED_RCV$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v2
if-ne v1, v2, :cond_4
goto :goto_3
.line 2840
:cond_4
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getRESUMING_BY_EB$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v2
if-eq v1, v2, :cond_2
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getRESUMING_BY_RCV$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v2
if-ne v1, v2, :cond_5
goto :goto_1
.line 2843
:cond_5
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getDONE_RCV$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object p1
if-eq v1, p1, :cond_8
sget-object p1, Lkotlinx/coroutines/channels/BufferedChannelKt;->BUFFERED:Lkotlinx/coroutines/internal/Symbol;
if-ne v1, p1, :cond_6
goto :goto_2
.line 2846
:cond_6
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->getCHANNEL_CLOSED()Lkotlinx/coroutines/internal/Symbol;
move-result-object p1
if-ne v1, p1, :cond_7
return-void
:cond_7
new-instance p1, Ljava/lang/IllegalStateException;
.line 2847
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string p3, "unexpected state: "
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_8
:goto_2
return-void
.line 2827
:cond_9
:goto_3
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ChannelSegment;->cleanElement$kotlinx_coroutines_core(I)V
if-eqz v0, :cond_a
.line 2830
invoke-virtual {p0}, Lkotlinx/coroutines/channels/ChannelSegment;->getChannel()Lkotlinx/coroutines/channels/BufferedChannel;
move-result-object p1
iget-object p1, p1, Lkotlinx/coroutines/channels/BufferedChannel;->onUndeliveredElement:Lkotlin/jvm/functions/Function1;
if-eqz p1, :cond_a
invoke-static {p1, p2, p3}, Lkotlinx/coroutines/internal/OnUndeliveredElementKt;->callUndeliveredElement(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlin/coroutines/CoroutineContext;)V
:cond_a
return-void
:cond_b
:goto_4
if-eqz v0, :cond_c
.line 2806
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getINTERRUPTED_SEND$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v2
goto :goto_5
:cond_c
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannelKt;->access$getINTERRUPTED_RCV$p()Lkotlinx/coroutines/internal/Symbol;
move-result-object v2
.line 2807
:goto_5
invoke-virtual {p0, p1, v1, v2}, Lkotlinx/coroutines/channels/ChannelSegment;->casState$kotlinx_coroutines_core(ILjava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_2
.line 2814
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ChannelSegment;->cleanElement$kotlinx_coroutines_core(I)V
xor-int/lit8 v1, v0, 0x1
.line 2815
invoke-virtual {p0, p1, v1}, Lkotlinx/coroutines/channels/ChannelSegment;->onCancelledRequest(IZ)V
if-eqz v0, :cond_d
.line 2818
invoke-virtual {p0}, Lkotlinx/coroutines/channels/ChannelSegment;->getChannel()Lkotlinx/coroutines/channels/BufferedChannel;
move-result-object p1
iget-object p1, p1, Lkotlinx/coroutines/channels/BufferedChannel;->onUndeliveredElement:Lkotlin/jvm/functions/Function1;
if-eqz p1, :cond_d
invoke-static {p1, p2, p3}, Lkotlinx/coroutines/internal/OnUndeliveredElementKt;->callUndeliveredElement(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlin/coroutines/CoroutineContext;)V
:cond_d
return-void
.end method
.method public final onCancelledRequest(IZ)V
.locals 4
if-eqz p2, :cond_0
.line 2857
invoke-virtual {p0}, Lkotlinx/coroutines/channels/ChannelSegment;->getChannel()Lkotlinx/coroutines/channels/BufferedChannel;
move-result-object p2
iget-wide v0, p0, Lkotlinx/coroutines/internal/Segment;->id:J
sget v2, Lkotlinx/coroutines/channels/BufferedChannelKt;->SEGMENT_SIZE:I
int-to-long v2, v2
mul-long/2addr v0, v2
int-to-long v2, p1
add-long/2addr v0, v2
invoke-virtual {p2, v0, v1}, Lkotlinx/coroutines/channels/BufferedChannel;->waitExpandBufferCompletion$kotlinx_coroutines_core(J)V
.line 2858
:cond_0
invoke-virtual {p0}, Lkotlinx/coroutines/internal/Segment;->onSlotCleaned()V
return-void
.end method
.method public final retrieveElement$kotlinx_coroutines_core(I)Ljava/lang/Object;
.locals 1
.line 2759
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ChannelSegment;->getElement$kotlinx_coroutines_core(I)Ljava/lang/Object;
move-result-object v0
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ChannelSegment;->cleanElement$kotlinx_coroutines_core(I)V
return-object v0
.end method
.method public final setElementLazy(ILjava/lang/Object;)V
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelSegment;->data:Ljava/util/concurrent/atomic/AtomicReferenceArray;
mul-int/lit8 p1, p1, 0x2
.line 2766
invoke-virtual {v0, p1, p2}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->lazySet(ILjava/lang/Object;)V
return-void
.end method
.method public final setState$kotlinx_coroutines_core(ILjava/lang/Object;)V
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ChannelSegment;->data:Ljava/util/concurrent/atomic/AtomicReferenceArray;
mul-int/lit8 p1, p1, 0x2
add-int/lit8 p1, p1, 0x1
.line 2776
invoke-virtual {v0, p1, p2}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->set(ILjava/lang/Object;)V
return-void
.end method
.method public final storeElement$kotlinx_coroutines_core(ILjava/lang/Object;)V
.locals 0
.line 2753
invoke-virtual {p0, p1, p2}, Lkotlinx/coroutines/channels/ChannelSegment;->setElementLazy(ILjava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,25 @@
.class public abstract Lkotlinx/coroutines/channels/ChannelsKt;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final cancelConsumed(Lkotlinx/coroutines/channels/ReceiveChannel;Ljava/lang/Throwable;)V
.locals 0
.line 1
invoke-static {p0, p1}, Lkotlinx/coroutines/channels/ChannelsKt__Channels_commonKt;->cancelConsumed(Lkotlinx/coroutines/channels/ReceiveChannel;Ljava/lang/Throwable;)V
return-void
.end method
.method public static final trySendBlocking(Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1
invoke-static {p0, p1}, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt;->trySendBlocking(Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,218 @@
.class public final Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt;->trySendBlocking(Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Object;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic $element:Ljava/lang/Object;
.field public final synthetic $this_trySendBlocking:Lkotlinx/coroutines/channels/SendChannel;
.field public synthetic L$0:Ljava/lang/Object;
.field public label:I
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)V
.locals 0
iput-object p1, p0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->$this_trySendBlocking:Lkotlinx/coroutines/channels/SendChannel;
iput-object p2, p0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->$element:Ljava/lang/Object;
const/4 p1, 0x2
invoke-direct {p0, p1, p3}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 3
new-instance v0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;
iget-object v1, p0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->$this_trySendBlocking:Lkotlinx/coroutines/channels/SendChannel;
iget-object v2, p0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->$element:Ljava/lang/Object;
invoke-direct {v0, v1, v2, p2}, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;-><init>(Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)V
iput-object p1, v0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->L$0:Ljava/lang/Object;
return-object v0
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->invoke(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invoke(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.line 0
invoke-virtual {p0, p1, p2}, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 4
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->label:I
const/4 v2, 0x1
if-eqz v1, :cond_1
if-ne v1, v2, :cond_0
.line 38
:try_start_0
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->L$0:Ljava/lang/Object;
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
iget-object p1, p0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->$this_trySendBlocking:Lkotlinx/coroutines/channels/SendChannel;
iget-object v1, p0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->$element:Ljava/lang/Object;
.line 39
:try_start_1
sget-object v3, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
iput v2, p0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;->label:I
invoke-interface {p1, v1, p0}, Lkotlinx/coroutines/channels/SendChannel;->send(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_2
return-object v0
:cond_2
:goto_0
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-static {p1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_2
:goto_1
sget-object v0, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
invoke-static {p1}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object p1
invoke-static {p1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
.line 40
:goto_2
invoke-static {p1}, Lkotlin/Result;->isSuccess-impl(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_3
sget-object p1, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, v0}, Lkotlinx/coroutines/channels/ChannelResult$Companion;->success-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
goto :goto_3
.line 41
:cond_3
sget-object v0, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
invoke-static {p1}, Lkotlin/Result;->exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object p1
invoke-virtual {v0, p1}, Lkotlinx/coroutines/channels/ChannelResult$Companion;->closed-JP2dKIU(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object p1
:goto_3
invoke-static {p1}, Lkotlinx/coroutines/channels/ChannelResult;->box-impl(Ljava/lang/Object;)Lkotlinx/coroutines/channels/ChannelResult;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,54 @@
.class public abstract synthetic Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final trySendBlocking(Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
.line 37
invoke-interface {p0, p1}, Lkotlinx/coroutines/channels/SendChannel;->trySend-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
.line 518
instance-of v1, v0, Lkotlinx/coroutines/channels/ChannelResult$Failed;
if-nez v1, :cond_0
check-cast v0, Lkotlin/Unit;
.line 37
sget-object p0, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ChannelResult$Companion;->success-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.line 38
:cond_0
new-instance v0, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;
const/4 v1, 0x0
invoke-direct {v0, p0, p1, v1}, Lkotlinx/coroutines/channels/ChannelsKt__ChannelsKt$trySendBlocking$2;-><init>(Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)V
const/4 p0, 0x1
invoke-static {v1, v0, p0, v1}, Lkotlinx/coroutines/BuildersKt;->runBlocking$default(Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lkotlinx/coroutines/channels/ChannelResult;
invoke-virtual {p0}, Lkotlinx/coroutines/channels/ChannelResult;->unbox-impl()Ljava/lang/Object;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,39 @@
.class public abstract synthetic Lkotlinx/coroutines/channels/ChannelsKt__Channels_commonKt;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final cancelConsumed(Lkotlinx/coroutines/channels/ReceiveChannel;Ljava/lang/Throwable;)V
.locals 2
const/4 v0, 0x0
if-eqz p1, :cond_1
.line 137
instance-of v1, p1, Ljava/util/concurrent/CancellationException;
if-eqz v1, :cond_0
move-object v0, p1
check-cast v0, Ljava/util/concurrent/CancellationException;
:cond_0
if-nez v0, :cond_1
const-string v0, "Channel was consumed, consumer had failed"
invoke-static {v0, p1}, Lkotlinx/coroutines/ExceptionsKt;->CancellationException(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/util/concurrent/CancellationException;
move-result-object p1
move-object v0, p1
.line 136
:cond_1
invoke-interface {p0, v0}, Lkotlinx/coroutines/channels/ReceiveChannel;->cancel(Ljava/util/concurrent/CancellationException;)V
return-void
.end method

View File

@@ -0,0 +1,14 @@
.class public final Lkotlinx/coroutines/channels/ClosedReceiveChannelException;
.super Ljava/util/NoSuchElementException;
.source "SourceFile"
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 823
invoke-direct {p0, p1}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,14 @@
.class public final Lkotlinx/coroutines/channels/ClosedSendChannelException;
.super Ljava/lang/IllegalStateException;
.source "SourceFile"
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 814
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,575 @@
.class public Lkotlinx/coroutines/channels/ConflatedBufferedChannel;
.super Lkotlinx/coroutines/channels/BufferedChannel;
.source "SourceFile"
# instance fields
.field public final capacity:I
.field public final onBufferOverflow:Lkotlinx/coroutines/channels/BufferOverflow;
# direct methods
.method public constructor <init>(ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;)V
.locals 0
.line 26
invoke-direct {p0, p1, p3}, Lkotlinx/coroutines/channels/BufferedChannel;-><init>(ILkotlin/jvm/functions/Function1;)V
iput p1, p0, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;->capacity:I
iput-object p2, p0, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;->onBufferOverflow:Lkotlinx/coroutines/channels/BufferOverflow;
.line 28
sget-object p3, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
if-eq p2, p3, :cond_1
const/4 p2, 0x1
if-lt p1, p2, :cond_0
return-void
.line 32
:cond_0
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string p3, "Buffered channel capacity must be at least 1, but "
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, " was specified"
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 31
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.line 29
:cond_1
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p2, "This implementation does not support suspension for senders, use "
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-class p2, Lkotlinx/coroutines/channels/BufferedChannel;
invoke-static {p2}, Lkotlin/jvm/internal/Reflection;->getOrCreateKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/KClass;
move-result-object p2
invoke-interface {p2}, Lkotlin/reflect/KClass;->getSimpleName()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p2, " instead"
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 28
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public static synthetic send$suspendImpl(Lkotlinx/coroutines/channels/ConflatedBufferedChannel;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 2
const/4 p2, 0x1
.line 41
invoke-virtual {p0, p1, p2}, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;->trySendImpl-Mj0NB7M(Ljava/lang/Object;Z)Ljava/lang/Object;
move-result-object p2
.line 551
instance-of v0, p2, Lkotlinx/coroutines/channels/ChannelResult$Closed;
if-eqz v0, :cond_1
invoke-static {p2}, Lkotlinx/coroutines/channels/ChannelResult;->exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;
.line 42
iget-object p2, p0, Lkotlinx/coroutines/channels/BufferedChannel;->onUndeliveredElement:Lkotlin/jvm/functions/Function1;
if-eqz p2, :cond_0
const/4 v0, 0x2
const/4 v1, 0x0
invoke-static {p2, p1, v1, v0, v1}, Lkotlinx/coroutines/internal/OnUndeliveredElementKt;->callUndeliveredElementCatchingException$default(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlinx/coroutines/internal/UndeliveredElementException;ILjava/lang/Object;)Lkotlinx/coroutines/internal/UndeliveredElementException;
move-result-object p1
if-eqz p1, :cond_0
.line 43
invoke-virtual {p0}, Lkotlinx/coroutines/channels/BufferedChannel;->getSendException()Ljava/lang/Throwable;
move-result-object p0
invoke-static {p1, p0}, Lkotlin/ExceptionsKt;->addSuppressed(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
.line 44
throw p1
.line 46
:cond_0
invoke-virtual {p0}, Lkotlinx/coroutines/channels/BufferedChannel;->getSendException()Ljava/lang/Throwable;
move-result-object p0
throw p0
.line 48
:cond_1
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p0
.end method
# virtual methods
.method public isConflatedDropOldest()Z
.locals 2
iget-object v0, p0, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;->onBufferOverflow:Lkotlinx/coroutines/channels/BufferOverflow;
.line 37
sget-object v1, Lkotlinx/coroutines/channels/BufferOverflow;->DROP_OLDEST:Lkotlinx/coroutines/channels/BufferOverflow;
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public send(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
invoke-static {p0, p1, p2}, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;->send$suspendImpl(Lkotlinx/coroutines/channels/ConflatedBufferedChannel;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public trySend-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
const/4 v0, 0x0
.line 57
invoke-virtual {p0, p1, v0}, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;->trySendImpl-Mj0NB7M(Ljava/lang/Object;Z)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final trySendDropLatest-Mj0NB7M(Ljava/lang/Object;Z)Ljava/lang/Object;
.locals 2
.line 65
invoke-super {p0, p1}, Lkotlinx/coroutines/channels/BufferedChannel;->trySend-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
.line 67
invoke-static {v0}, Lkotlinx/coroutines/channels/ChannelResult;->isSuccess-impl(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_3
invoke-static {v0}, Lkotlinx/coroutines/channels/ChannelResult;->isClosed-impl(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
goto :goto_1
:cond_0
if-eqz p2, :cond_2
iget-object p2, p0, Lkotlinx/coroutines/channels/BufferedChannel;->onUndeliveredElement:Lkotlin/jvm/functions/Function1;
if-eqz p2, :cond_2
const/4 v0, 0x2
const/4 v1, 0x0
.line 72
invoke-static {p2, p1, v1, v0, v1}, Lkotlinx/coroutines/internal/OnUndeliveredElementKt;->callUndeliveredElementCatchingException$default(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlinx/coroutines/internal/UndeliveredElementException;ILjava/lang/Object;)Lkotlinx/coroutines/internal/UndeliveredElementException;
move-result-object p1
if-nez p1, :cond_1
goto :goto_0
.line 73
:cond_1
throw p1
.line 76
:cond_2
:goto_0
sget-object p1, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Lkotlinx/coroutines/channels/ChannelResult$Companion;->success-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
:cond_3
:goto_1
return-object v0
.end method
.method public final trySendDropOldest-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
.locals 16
move-object/from16 v8, p0
.line 85
sget-object v9, Lkotlinx/coroutines/channels/BufferedChannelKt;->BUFFERED:Lkotlinx/coroutines/internal/Symbol;
.line 244
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannel;->access$getSendSegment$FU$p()Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
move-result-object v0
.line 273
invoke-virtual {v0, v8}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lkotlinx/coroutines/channels/ChannelSegment;
.line 274
:cond_0
:goto_0
invoke-static {}, Lkotlinx/coroutines/channels/BufferedChannel;->access$getSendersAndCloseStatus$FU$p()Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
move-result-object v1
.line 277
invoke-virtual {v1, v8}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->getAndIncrement(Ljava/lang/Object;)J
move-result-wide v1
const-wide v3, 0xfffffffffffffffL
and-long v10, v1, v3
.line 280
invoke-static {v8, v1, v2}, Lkotlinx/coroutines/channels/BufferedChannel;->access$isClosedForSend0(Lkotlinx/coroutines/channels/BufferedChannel;J)Z
move-result v12
.line 282
sget v13, Lkotlinx/coroutines/channels/BufferedChannelKt;->SEGMENT_SIZE:I
int-to-long v1, v13
div-long v1, v10, v1
int-to-long v3, v13
.line 283
rem-long v3, v10, v3
long-to-int v14, v3
.line 286
iget-wide v3, v0, Lkotlinx/coroutines/internal/Segment;->id:J
cmp-long v3, v3, v1
if-eqz v3, :cond_2
.line 288
invoke-static {v8, v1, v2, v0}, Lkotlinx/coroutines/channels/BufferedChannel;->access$findSegmentSend(Lkotlinx/coroutines/channels/BufferedChannel;JLkotlinx/coroutines/channels/ChannelSegment;)Lkotlinx/coroutines/channels/ChannelSegment;
move-result-object v1
if-nez v1, :cond_1
if-eqz v12, :cond_0
.line 97
sget-object v0, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
invoke-virtual/range {p0 .. p0}, Lkotlinx/coroutines/channels/BufferedChannel;->getSendException()Ljava/lang/Throwable;
move-result-object v1
invoke-virtual {v0, v1}, Lkotlinx/coroutines/channels/ChannelResult$Companion;->closed-JP2dKIU(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v0
return-object v0
:cond_1
move-object v15, v1
goto :goto_1
:cond_2
move-object v15, v0
:goto_1
move-object/from16 v0, p0
move-object v1, v15
move v2, v14
move-object/from16 v3, p1
move-wide v4, v10
move-object v6, v9
move v7, v12
.line 304
invoke-static/range {v0 .. v7}, Lkotlinx/coroutines/channels/BufferedChannel;->access$updateCellSend(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlinx/coroutines/channels/ChannelSegment;ILjava/lang/Object;JLjava/lang/Object;Z)I
move-result v0
if-eqz v0, :cond_c
const/4 v1, 0x1
if-eq v0, v1, :cond_b
const/4 v1, 0x2
if-eq v0, v1, :cond_7
const/4 v1, 0x3
if-eq v0, v1, :cond_6
const/4 v1, 0x4
if-eq v0, v1, :cond_4
const/4 v1, 0x5
if-eq v0, v1, :cond_3
goto :goto_2
.line 341
:cond_3
invoke-virtual {v15}, Lkotlinx/coroutines/internal/ConcurrentLinkedListNode;->cleanPrev()V
:goto_2
move-object v0, v15
goto :goto_0
.line 334
:cond_4
invoke-virtual/range {p0 .. p0}, Lkotlinx/coroutines/channels/BufferedChannel;->getReceiversCounter$kotlinx_coroutines_core()J
move-result-wide v0
cmp-long v0, v10, v0
if-gez v0, :cond_5
invoke-virtual {v15}, Lkotlinx/coroutines/internal/ConcurrentLinkedListNode;->cleanPrev()V
.line 97
:cond_5
sget-object v0, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
invoke-virtual/range {p0 .. p0}, Lkotlinx/coroutines/channels/BufferedChannel;->getSendException()Ljava/lang/Throwable;
move-result-object v1
invoke-virtual {v0, v1}, Lkotlinx/coroutines/channels/ChannelResult$Companion;->closed-JP2dKIU(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v0
return-object v0
.line 347
:cond_6
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "unexpected"
.line 269
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_7
if-eqz v12, :cond_8
.line 323
invoke-virtual {v15}, Lkotlinx/coroutines/internal/Segment;->onSlotCleaned()V
.line 97
sget-object v0, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
invoke-virtual/range {p0 .. p0}, Lkotlinx/coroutines/channels/BufferedChannel;->getSendException()Ljava/lang/Throwable;
move-result-object v1
invoke-virtual {v0, v1}, Lkotlinx/coroutines/channels/ChannelResult$Companion;->closed-JP2dKIU(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v0
return-object v0
.line 326
:cond_8
instance-of v0, v9, Lkotlinx/coroutines/Waiter;
if-eqz v0, :cond_9
check-cast v9, Lkotlinx/coroutines/Waiter;
goto :goto_3
:cond_9
const/4 v9, 0x0
:goto_3
if-eqz v9, :cond_a
invoke-static {v8, v9, v15, v14}, Lkotlinx/coroutines/channels/BufferedChannel;->access$prepareSenderForSuspension(Lkotlinx/coroutines/channels/BufferedChannel;Lkotlinx/coroutines/Waiter;Lkotlinx/coroutines/channels/ChannelSegment;I)V
.line 93
:cond_a
iget-wide v0, v15, Lkotlinx/coroutines/internal/Segment;->id:J
int-to-long v2, v13
mul-long/2addr v0, v2
int-to-long v2, v14
add-long/2addr v0, v2
invoke-virtual {v8, v0, v1}, Lkotlinx/coroutines/channels/BufferedChannel;->dropFirstElementUntilTheSpecifiedCellIsInTheBuffer(J)V
.line 94
sget-object v0, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {v0, v1}, Lkotlinx/coroutines/channels/ChannelResult$Companion;->success-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.line 88
:cond_b
sget-object v0, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {v0, v1}, Lkotlinx/coroutines/channels/ChannelResult$Companion;->success-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.line 310
:cond_c
invoke-virtual {v15}, Lkotlinx/coroutines/internal/ConcurrentLinkedListNode;->cleanPrev()V
.line 88
sget-object v0, Lkotlinx/coroutines/channels/ChannelResult;->Companion:Lkotlinx/coroutines/channels/ChannelResult$Companion;
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {v0, v1}, Lkotlinx/coroutines/channels/ChannelResult$Companion;->success-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public final trySendImpl-Mj0NB7M(Ljava/lang/Object;Z)Ljava/lang/Object;
.locals 2
iget-object v0, p0, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;->onBufferOverflow:Lkotlinx/coroutines/channels/BufferOverflow;
.line 60
sget-object v1, Lkotlinx/coroutines/channels/BufferOverflow;->DROP_LATEST:Lkotlinx/coroutines/channels/BufferOverflow;
if-ne v0, v1, :cond_0
invoke-virtual {p0, p1, p2}, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;->trySendDropLatest-Mj0NB7M(Ljava/lang/Object;Z)Ljava/lang/Object;
move-result-object p1
goto :goto_0
.line 61
:cond_0
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ConflatedBufferedChannel;->trySendDropOldest-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:goto_0
return-object p1
.end method

View File

@@ -0,0 +1,58 @@
.class public final Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlinx/coroutines/channels/ProduceKt;->awaitClose(Lkotlinx/coroutines/channels/ProducerScope;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public L$0:Ljava/lang/Object;
.field public L$1:Ljava/lang/Object;
.field public label:I
.field public synthetic result:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Lkotlin/coroutines/Continuation;)V
.locals 0
invoke-direct {p0, p1}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->result:Ljava/lang/Object;
iget p1, p0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->label:I
const/4 p1, 0x0
invoke-static {p1, p1, p0}, Lkotlinx/coroutines/channels/ProduceKt;->awaitClose(Lkotlinx/coroutines/channels/ProducerScope;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,69 @@
.class public final Lkotlinx/coroutines/channels/ProduceKt$awaitClose$4$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlinx/coroutines/channels/ProduceKt;->awaitClose(Lkotlinx/coroutines/channels/ProducerScope;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic $cont:Lkotlinx/coroutines/CancellableContinuation;
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/CancellableContinuation;)V
.locals 0
iput-object p1, p0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$4$1;->$cont:Lkotlinx/coroutines/CancellableContinuation;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 49
check-cast p1, Ljava/lang/Throwable;
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$4$1;->invoke(Ljava/lang/Throwable;)V
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(Ljava/lang/Throwable;)V
.locals 1
iget-object p1, p0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$4$1;->$cont:Lkotlinx/coroutines/CancellableContinuation;
.line 50
sget-object v0, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-static {v0}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
invoke-interface {p1, v0}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,274 @@
.class public abstract Lkotlinx/coroutines/channels/ProduceKt;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final awaitClose(Lkotlinx/coroutines/channels/ProducerScope;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 4
instance-of v0, p2, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;
if-eqz v0, :cond_0
move-object v0, p2
check-cast v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;
iget v1, v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->label:I
const/high16 v2, -0x80000000
and-int v3, v1, v2
if-eqz v3, :cond_0
sub-int/2addr v1, v2
iput v1, v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->label:I
goto :goto_0
:cond_0
new-instance v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;
invoke-direct {v0, p2}, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;-><init>(Lkotlin/coroutines/Continuation;)V
:goto_0
iget-object p2, v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->result:Ljava/lang/Object;
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v1
.line 45
iget v2, v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->label:I
const/4 v3, 0x1
if-eqz v2, :cond_2
if-ne v2, v3, :cond_1
iget-object p0, v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->L$1:Ljava/lang/Object;
move-object p1, p0
check-cast p1, Lkotlin/jvm/functions/Function0;
iget-object p0, v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->L$0:Ljava/lang/Object;
check-cast p0, Lkotlinx/coroutines/channels/ProducerScope;
:try_start_0
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_1
:catchall_0
move-exception p0
goto :goto_2
:cond_1
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
:cond_2
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
.line 46
invoke-interface {v0}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object p2
sget-object v2, Lkotlinx/coroutines/Job;->Key:Lkotlinx/coroutines/Job$Key;
invoke-interface {p2, v2}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
move-result-object p2
if-ne p2, p0, :cond_5
.line 314
:try_start_1
iput-object p0, v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->L$0:Ljava/lang/Object;
iput-object p1, v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->L$1:Ljava/lang/Object;
iput v3, v0, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$1;->label:I
.line 315
new-instance p2, Lkotlinx/coroutines/CancellableContinuationImpl;
invoke-static {v0}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object v2
invoke-direct {p2, v2, v3}, Lkotlinx/coroutines/CancellableContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;I)V
.line 321
invoke-virtual {p2}, Lkotlinx/coroutines/CancellableContinuationImpl;->initCancellability()V
.line 49
new-instance v2, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$4$1;
invoke-direct {v2, p2}, Lkotlinx/coroutines/channels/ProduceKt$awaitClose$4$1;-><init>(Lkotlinx/coroutines/CancellableContinuation;)V
invoke-interface {p0, v2}, Lkotlinx/coroutines/channels/SendChannel;->invokeOnClose(Lkotlin/jvm/functions/Function1;)V
.line 323
invoke-virtual {p2}, Lkotlinx/coroutines/CancellableContinuationImpl;->getResult()Ljava/lang/Object;
move-result-object p0
.line 314
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object p2
if-ne p0, p2, :cond_3
invoke-static {v0}, Lkotlin/coroutines/jvm/internal/DebugProbesKt;->probeCoroutineSuspended(Lkotlin/coroutines/Continuation;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:cond_3
if-ne p0, v1, :cond_4
return-object v1
.line 54
:cond_4
:goto_1
invoke-interface {p1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
.line 56
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p0
.line 54
:goto_2
invoke-interface {p1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
throw p0
.line 46
:cond_5
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "awaitClose() can only be invoked from the producer context"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static final produce(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;ILkotlinx/coroutines/channels/BufferOverflow;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/channels/ReceiveChannel;
.locals 2
const/4 v0, 0x0
const/4 v1, 0x4
.line 128
invoke-static {p2, p3, v0, v1, v0}, Lkotlinx/coroutines/channels/ChannelKt;->Channel$default(ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lkotlinx/coroutines/channels/Channel;
move-result-object p2
.line 129
invoke-static {p0, p1}, Lkotlinx/coroutines/CoroutineContextKt;->newCoroutineContext(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
move-result-object p0
.line 130
new-instance p1, Lkotlinx/coroutines/channels/ProducerCoroutine;
invoke-direct {p1, p0, p2}, Lkotlinx/coroutines/channels/ProducerCoroutine;-><init>(Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/channels/Channel;)V
if-eqz p5, :cond_0
.line 131
invoke-virtual {p1, p5}, Lkotlinx/coroutines/JobSupport;->invokeOnCompletion(Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/DisposableHandle;
.line 132
:cond_0
invoke-virtual {p1, p4, p1, p6}, Lkotlinx/coroutines/AbstractCoroutine;->start(Lkotlinx/coroutines/CoroutineStart;Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)V
return-object p1
.end method
.method public static synthetic produce$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;ILkotlinx/coroutines/channels/BufferOverflow;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
.locals 7
and-int/lit8 p8, p7, 0x1
if-eqz p8, :cond_0
.line 121
sget-object p1, Lkotlin/coroutines/EmptyCoroutineContext;->INSTANCE:Lkotlin/coroutines/EmptyCoroutineContext;
:cond_0
move-object v1, p1
and-int/lit8 p1, p7, 0x2
if-eqz p1, :cond_1
const/4 p2, 0x0
:cond_1
move v2, p2
and-int/lit8 p1, p7, 0x4
if-eqz p1, :cond_2
.line 123
sget-object p3, Lkotlinx/coroutines/channels/BufferOverflow;->SUSPEND:Lkotlinx/coroutines/channels/BufferOverflow;
:cond_2
move-object v3, p3
and-int/lit8 p1, p7, 0x8
if-eqz p1, :cond_3
.line 124
sget-object p4, Lkotlinx/coroutines/CoroutineStart;->DEFAULT:Lkotlinx/coroutines/CoroutineStart;
:cond_3
move-object v4, p4
and-int/lit8 p1, p7, 0x10
if-eqz p1, :cond_4
const/4 p5, 0x0
:cond_4
move-object v5, p5
move-object v0, p0
move-object v6, p6
.line 120
invoke-static/range {v0 .. v6}, Lkotlinx/coroutines/channels/ProduceKt;->produce(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;ILkotlinx/coroutines/channels/BufferOverflow;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/channels/ReceiveChannel;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,98 @@
.class public final Lkotlinx/coroutines/channels/ProducerCoroutine;
.super Lkotlinx/coroutines/channels/ChannelCoroutine;
.source "SourceFile"
# interfaces
.implements Lkotlinx/coroutines/channels/ProducerScope;
# direct methods
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/channels/Channel;)V
.locals 1
const/4 v0, 0x1
.line 138
invoke-direct {p0, p1, p2, v0, v0}, Lkotlinx/coroutines/channels/ChannelCoroutine;-><init>(Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/channels/Channel;ZZ)V
return-void
.end method
# virtual methods
.method public bridge synthetic getChannel()Lkotlinx/coroutines/channels/SendChannel;
.locals 1
.line 136
invoke-virtual {p0}, Lkotlinx/coroutines/channels/ChannelCoroutine;->getChannel()Lkotlinx/coroutines/channels/Channel;
move-result-object v0
return-object v0
.end method
.method public isActive()Z
.locals 1
.line 140
invoke-super {p0}, Lkotlinx/coroutines/AbstractCoroutine;->isActive()Z
move-result v0
return v0
.end method
.method public onCancelled(Ljava/lang/Throwable;Z)V
.locals 1
.line 147
invoke-virtual {p0}, Lkotlinx/coroutines/channels/ChannelCoroutine;->get_channel()Lkotlinx/coroutines/channels/Channel;
move-result-object v0
invoke-interface {v0, p1}, Lkotlinx/coroutines/channels/SendChannel;->close(Ljava/lang/Throwable;)Z
move-result v0
if-nez v0, :cond_0
if-nez p2, :cond_0
.line 148
invoke-virtual {p0}, Lkotlinx/coroutines/AbstractCoroutine;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object p2
invoke-static {p2, p1}, Lkotlinx/coroutines/CoroutineExceptionHandlerKt;->handleCoroutineException(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
:cond_0
return-void
.end method
.method public bridge synthetic onCompleted(Ljava/lang/Object;)V
.locals 0
.line 136
check-cast p1, Lkotlin/Unit;
invoke-virtual {p0, p1}, Lkotlinx/coroutines/channels/ProducerCoroutine;->onCompleted(Lkotlin/Unit;)V
return-void
.end method
.method public onCompleted(Lkotlin/Unit;)V
.locals 2
.line 143
invoke-virtual {p0}, Lkotlinx/coroutines/channels/ChannelCoroutine;->get_channel()Lkotlinx/coroutines/channels/Channel;
move-result-object p1
const/4 v0, 0x0
const/4 v1, 0x1
invoke-static {p1, v0, v1, v0}, Lkotlinx/coroutines/channels/SendChannel$DefaultImpls;->close$default(Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Throwable;ILjava/lang/Object;)Z
return-void
.end method

View File

@@ -0,0 +1,12 @@
.class public interface abstract Lkotlinx/coroutines/channels/ProducerScope;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lkotlinx/coroutines/CoroutineScope;
.implements Lkotlinx/coroutines/channels/SendChannel;
# virtual methods
.method public abstract getChannel()Lkotlinx/coroutines/channels/SendChannel;
.end method

View File

@@ -0,0 +1,35 @@
.class public final Lkotlinx/coroutines/channels/ReceiveCatching;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lkotlinx/coroutines/Waiter;
# instance fields
.field public final cont:Lkotlinx/coroutines/CancellableContinuationImpl;
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/CancellableContinuationImpl;)V
.locals 0
.line 2968
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lkotlinx/coroutines/channels/ReceiveCatching;->cont:Lkotlinx/coroutines/CancellableContinuationImpl;
return-void
.end method
# virtual methods
.method public invokeOnCancellation(Lkotlinx/coroutines/internal/Segment;I)V
.locals 1
iget-object v0, p0, Lkotlinx/coroutines/channels/ReceiveCatching;->cont:Lkotlinx/coroutines/CancellableContinuationImpl;
invoke-virtual {v0, p1, p2}, Lkotlinx/coroutines/CancellableContinuationImpl;->invokeOnCancellation(Lkotlinx/coroutines/internal/Segment;I)V
return-void
.end method

View File

@@ -0,0 +1,20 @@
.class public interface abstract Lkotlinx/coroutines/channels/ReceiveChannel;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract cancel(Ljava/util/concurrent/CancellationException;)V
.end method
.method public abstract iterator()Lkotlinx/coroutines/channels/ChannelIterator;
.end method
.method public abstract receive(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end method
.method public abstract receiveCatching-JP2dKIU(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end method
.method public abstract tryReceive-PtdJZtk()Ljava/lang/Object;
.end method

View File

@@ -0,0 +1,45 @@
.class public abstract Lkotlinx/coroutines/channels/SendChannel$DefaultImpls;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lkotlinx/coroutines/channels/SendChannel;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "DefaultImpls"
.end annotation
# direct methods
.method public static synthetic close$default(Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Throwable;ILjava/lang/Object;)Z
.locals 0
if-nez p3, :cond_1
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
const/4 p1, 0x0
.line 98
:cond_0
invoke-interface {p0, p1}, Lkotlinx/coroutines/channels/SendChannel;->close(Ljava/lang/Throwable;)Z
move-result p0
return p0
:cond_1
new-instance p0, Ljava/lang/UnsupportedOperationException;
const-string p1, "Super calls with default arguments not supported in this target, function: close"
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p0
.end method

View File

@@ -0,0 +1,28 @@
.class public interface abstract Lkotlinx/coroutines/channels/SendChannel;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlinx/coroutines/channels/SendChannel$DefaultImpls;
}
.end annotation
# virtual methods
.method public abstract close(Ljava/lang/Throwable;)Z
.end method
.method public abstract invokeOnClose(Lkotlin/jvm/functions/Function1;)V
.end method
.method public abstract isClosedForSend()Z
.end method
.method public abstract send(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end method
.method public abstract trySend-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
.end method

View File

@@ -0,0 +1,49 @@
.class public final Lkotlinx/coroutines/channels/WaiterEB;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public final waiter:Lkotlinx/coroutines/Waiter;
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/Waiter;)V
.locals 0
.line 2957
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lkotlinx/coroutines/channels/WaiterEB;->waiter:Lkotlinx/coroutines/Waiter;
return-void
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 2
.line 2958
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "WaiterEB("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lkotlinx/coroutines/channels/WaiterEB;->waiter:Lkotlinx/coroutines/Waiter;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method