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
Deprecate receiveOrNull and onReceiveOrNull and introduce corresponding extensions with the same semantic and generic ': Any' bound. Rename ReceiveResult to ValueOrClosed for consistency.
Copy file name to clipboardExpand all lines: binary-compatibility-validator/reference-public-api/kotlinx-coroutines-core.txt
+23
Original file line number
Diff line number
Diff line change
@@ -588,7 +588,9 @@ public final class kotlinx/coroutines/channels/ChannelsKt {
588
588
public static final fun minWith (Lkotlinx/coroutines/channels/ReceiveChannel;Ljava/util/Comparator;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
589
589
public static final fun none (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
590
590
public static final fun none (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
591
+
public static final fun onReceiveOrNull (Lkotlinx/coroutines/channels/Channel;)Lkotlinx/coroutines/selects/SelectClause1;
591
592
public static final fun partition (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
593
+
public static final fun receiveOrNull (Lkotlinx/coroutines/channels/Channel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
592
594
public static final fun reduce (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
593
595
public static final fun reduceIndexed (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
594
596
public static final fun requireNoNulls (Lkotlinx/coroutines/channels/ReceiveChannel;)Lkotlinx/coroutines/channels/ReceiveChannel;
@@ -659,12 +661,14 @@ public abstract interface class kotlinx/coroutines/channels/ReceiveChannel {
659
661
public abstract synthetic fun cancel ()Z
660
662
public abstract fun cancel (Ljava/lang/Throwable;)Z
661
663
public abstract fun getOnReceive ()Lkotlinx/coroutines/selects/SelectClause1;
664
+
public abstract fun getOnReceiveOrClosed ()Lkotlinx/coroutines/selects/SelectClause1;
662
665
public abstract fun getOnReceiveOrNull ()Lkotlinx/coroutines/selects/SelectClause1;
663
666
public abstract fun isClosedForReceive ()Z
664
667
public abstract fun isEmpty ()Z
665
668
public abstract fun iterator ()Lkotlinx/coroutines/channels/ChannelIterator;
666
669
public abstract fun poll ()Ljava/lang/Object;
667
670
public abstract fun receive (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
671
+
public abstract fun receiveOrClosed (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
668
672
public abstract fun receiveOrNull (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
669
673
}
670
674
@@ -699,6 +703,25 @@ public final class kotlinx/coroutines/channels/TickerMode : java/lang/Enum {
699
703
public static fun values ()[Lkotlinx/coroutines/channels/TickerMode;
700
704
}
701
705
706
+
public final class kotlinx/coroutines/channels/ValueOrClosed {
707
+
public static final field Companion Lkotlinx/coroutines/channels/ValueOrClosed$Companion;
708
+
public static final synthetic fun box-impl (Ljava/lang/Object;)Lkotlinx/coroutines/channels/ValueOrClosed;
709
+
public fun equals (Ljava/lang/Object;)Z
710
+
public static fun equals-impl (Ljava/lang/Object;Ljava/lang/Object;)Z
711
+
public static final fun equals-impl0 (Ljava/lang/Object;Ljava/lang/Object;)Z
712
+
public static final fun getCloseCause-impl (Ljava/lang/Object;)Ljava/lang/Throwable;
713
+
public static final fun getValue-impl (Ljava/lang/Object;)Ljava/lang/Object;
714
+
public static final fun getValueOrNull-impl (Ljava/lang/Object;)Ljava/lang/Object;
715
+
public static final fun getValueOrThrow-impl (Ljava/lang/Object;)Ljava/lang/Object;
716
+
public fun hashCode ()I
717
+
public static fun hashCode-impl (Ljava/lang/Object;)I
718
+
public static final fun isClosed-impl (Ljava/lang/Object;)Z
719
+
public static final fun isValue-impl (Ljava/lang/Object;)Z
720
+
public fun toString ()Ljava/lang/String;
721
+
public static fun toString-impl (Ljava/lang/Object;)Ljava/lang/String;
722
+
public final synthetic fun unbox-impl ()Ljava/lang/Object;
723
+
}
724
+
702
725
public abstract interface class kotlinx/coroutines/selects/SelectBuilder {
703
726
public abstract fun invoke (Lkotlinx/coroutines/selects/SelectClause0;Lkotlin/jvm/functions/Function1;)V
704
727
public abstract fun invoke (Lkotlinx/coroutines/selects/SelectClause1;Lkotlin/jvm/functions/Function2;)V
0 commit comments