@@ -30,14 +30,15 @@ public interface SendChannel<in E> {
3030 * Returns `true` if the channel is full (out of capacity) and the [send] attempt will suspend.
3131 * This function returns `false` for [isClosedForSend] channel.
3232 *
33- * **Note: This is an experimental api.** This property may change its semantics and/or name in the future.
33+ * @suppress **Will be removed in next releases, no replacement.**
3434 */
3535 @ExperimentalCoroutinesApi
36+ @Deprecated(level = DeprecationLevel .ERROR , message = " Will be removed in next releases without replacement" )
3637 public val isFull: Boolean
3738
3839 /* *
39- * Adds [element] into to this channel, suspending the caller while this channel [isFull],
40- * or throws exception if the channel [isClosedForSend] (see [close] for details).
40+ * Adds [element] into to this channel, suspending the caller while the buffer of this channel is full
41+ * or if it does not exist, or throws exception if the channel [isClosedForSend] (see [close] for details).
4142 *
4243 * Note, that closing a channel _after_ this function had suspended does not cause this suspended send invocation
4344 * to abort, because closing a channel is conceptually like sending a special "close token" over this channel.
@@ -151,13 +152,14 @@ public interface ReceiveChannel<out E> {
151152 * Returns `true` if the channel is empty (contains no elements) and the [receive] attempt will suspend.
152153 * This function returns `false` for [isClosedForReceive] channel.
153154 *
154- * **Note: This is an experimental api.** This property may change its semantics and/or name in the future.
155+ * @suppress **Will be removed in next releases, no replacement.**
155156 */
156157 @ExperimentalCoroutinesApi
158+ @Deprecated(level = DeprecationLevel .ERROR , message = " Will be removed in next releases without replacement" )
157159 public val isEmpty: Boolean
158160
159161 /* *
160- * Retrieves and removes the element from this channel suspending the caller while this channel [isEmpty]
162+ * Retrieves and removes the element from this channel suspending the caller while this channel is empty,
161163 * or throws [ClosedReceiveChannelException] if the channel [isClosedForReceive].
162164 * If the channel was closed because of the exception, it is called a _failed_ channel and this function
163165 * throws the original [close][SendChannel.close] cause exception.
@@ -188,7 +190,7 @@ public interface ReceiveChannel<out E> {
188190 public val onReceive: SelectClause1 <E >
189191
190192 /* *
191- * Retrieves and removes the element from this channel suspending the caller while this channel [isEmpty]
193+ * Retrieves and removes the element from this channel suspending the caller while this channel is empty,
192194 * or returns `null` if the channel is [closed][isClosedForReceive] without cause
193195 * or throws the original [close][SendChannel.close] cause exception if the channel has _failed_.
194196 *
@@ -227,7 +229,7 @@ public interface ReceiveChannel<out E> {
227229 public val onReceiveOrNull: SelectClause1 <E ?>
228230
229231 /* *
230- * Retrieves and removes the element from this channel, or returns `null` if this channel [isEmpty]
232+ * Retrieves and removes the element from this channel, or returns `null` if this channel is empty
231233 * or is [isClosedForReceive] without cause.
232234 * It throws the original [close][SendChannel.close] cause exception if the channel has _failed_.
233235 */
@@ -273,9 +275,8 @@ public interface ReceiveChannel<out E> {
273275 */
274276public interface ChannelIterator <out E > {
275277 /* *
276- * Returns `true` if the channel has more elements suspending the caller while this channel
277- * [isEmpty][ReceiveChannel.isEmpty] or returns `false` if the channel
278- * [isClosedForReceive][ReceiveChannel.isClosedForReceive] without cause.
278+ * Returns `true` if the channel has more elements, suspending the caller while this channel is empty,
279+ * or returns `false` if the channel [isClosedForReceive][ReceiveChannel.isClosedForReceive] without cause.
279280 * It throws the original [close][SendChannel.close] cause exception if the channel has _failed_.
280281 *
281282 * This function retrieves and removes the element from this channel for the subsequent invocation
@@ -297,7 +298,7 @@ public interface ChannelIterator<out E> {
297298
298299 /* *
299300 * Retrieves and removes the element from this channel suspending the caller while this channel
300- * [isEmpty][ReceiveChannel.isEmpty] or throws [ClosedReceiveChannelException] if the channel
301+ * is empty or throws [ClosedReceiveChannelException] if the channel
301302 * [isClosedForReceive][ReceiveChannel.isClosedForReceive] without cause.
302303 * It throws the original [close][SendChannel.close] cause exception if the channel has _failed_.
303304 *
0 commit comments