You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce ChannelResult and receiveCatching/onReceiveCatching
* Introduce three-state ChannelResult, a domain-specific Result class counterpart
* Introduce receiveCatching/onReceiveCatching, make it public
* Get rid of receiveOrClosed/onReceiveOrClosed without migrations, it was @InternalCoroutinesApi anyway
Fixes#330
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/api/kotlinx-coroutines-core.api
+22-2
Original file line number
Diff line number
Diff line change
@@ -625,6 +625,26 @@ public final class kotlinx/coroutines/channels/ChannelKt {
625
625
public static synthetic fun Channel$default (ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lkotlinx/coroutines/channels/Channel;
626
626
}
627
627
628
+
public final class kotlinx/coroutines/channels/ChannelResult {
629
+
public static final field Companion Lkotlinx/coroutines/channels/ChannelResult$Companion;
630
+
public static final synthetic fun box-impl (Ljava/lang/Object;)Lkotlinx/coroutines/channels/ChannelResult;
631
+
public static synthetic fun constructor-impl (Ljava/lang/Object;Lkotlin/jvm/internal/DefaultConstructorMarker;)Ljava/lang/Object;
632
+
public fun equals (Ljava/lang/Object;)Z
633
+
public static fun equals-impl (Ljava/lang/Object;Ljava/lang/Object;)Z
634
+
public static final fun equals-impl0 (Ljava/lang/Object;Ljava/lang/Object;)Z
635
+
public static final fun exceptionOrNull-impl (Ljava/lang/Object;)Ljava/lang/Throwable;
636
+
public static final fun getOrNull-impl (Ljava/lang/Object;)Ljava/lang/Object;
637
+
public static final fun getOrThrow-impl (Ljava/lang/Object;)Ljava/lang/Object;
638
+
public fun hashCode ()I
639
+
public static fun hashCode-impl (Ljava/lang/Object;)I
640
+
public static final fun isClosed-impl (Ljava/lang/Object;)Z
641
+
public static final fun isFailure-impl (Ljava/lang/Object;)Z
642
+
public static final fun isSuccess-impl (Ljava/lang/Object;)Z
643
+
public fun toString ()Ljava/lang/String;
644
+
public static fun toString-impl (Ljava/lang/Object;)Ljava/lang/String;
645
+
public final synthetic fun unbox-impl ()Ljava/lang/Object;
646
+
}
647
+
628
648
public final class kotlinx/coroutines/channels/ChannelsKt {
629
649
public static final fun all (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
630
650
public static final fun any (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
@@ -789,14 +809,14 @@ public abstract interface class kotlinx/coroutines/channels/ReceiveChannel {
789
809
public abstract synthetic fun cancel (Ljava/lang/Throwable;)Z
790
810
public abstract fun cancel (Ljava/util/concurrent/CancellationException;)V
791
811
public abstract fun getOnReceive ()Lkotlinx/coroutines/selects/SelectClause1;
792
-
public abstract fun getOnReceiveOrClosed ()Lkotlinx/coroutines/selects/SelectClause1;
812
+
public abstract fun getOnReceiveCatching ()Lkotlinx/coroutines/selects/SelectClause1;
793
813
public abstract fun getOnReceiveOrNull ()Lkotlinx/coroutines/selects/SelectClause1;
794
814
public abstract fun isClosedForReceive ()Z
795
815
public abstract fun isEmpty ()Z
796
816
public abstract fun iterator ()Lkotlinx/coroutines/channels/ChannelIterator;
797
817
public abstract fun poll ()Ljava/lang/Object;
798
818
public abstract fun receive (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
799
-
public abstract fun receiveOrClosed-WVj179g (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
819
+
public abstract fun receiveCatching-JP2dKIU (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
800
820
public abstract fun receiveOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
0 commit comments