@@ -30,14 +30,15 @@ public interface SendChannel<in E> {
30
30
* Returns `true` if the channel is full (out of capacity) and the [send] attempt will suspend.
31
31
* This function returns `false` for [isClosedForSend] channel.
32
32
*
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.**
34
34
*/
35
35
@ExperimentalCoroutinesApi
36
+ @Deprecated(level = DeprecationLevel .ERROR , message = " Will be removed in next releases without replacement" )
36
37
public val isFull: Boolean
37
38
38
39
/* *
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).
41
42
*
42
43
* Note, that closing a channel _after_ this function had suspended does not cause this suspended send invocation
43
44
* 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> {
151
152
* Returns `true` if the channel is empty (contains no elements) and the [receive] attempt will suspend.
152
153
* This function returns `false` for [isClosedForReceive] channel.
153
154
*
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.**
155
156
*/
156
157
@ExperimentalCoroutinesApi
158
+ @Deprecated(level = DeprecationLevel .ERROR , message = " Will be removed in next releases without replacement" )
157
159
public val isEmpty: Boolean
158
160
159
161
/* *
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,
161
163
* or throws [ClosedReceiveChannelException] if the channel [isClosedForReceive].
162
164
* If the channel was closed because of the exception, it is called a _failed_ channel and this function
163
165
* throws the original [close][SendChannel.close] cause exception.
@@ -188,7 +190,7 @@ public interface ReceiveChannel<out E> {
188
190
public val onReceive: SelectClause1 <E >
189
191
190
192
/* *
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,
192
194
* or returns `null` if the channel is [closed][isClosedForReceive] without cause
193
195
* or throws the original [close][SendChannel.close] cause exception if the channel has _failed_.
194
196
*
@@ -227,7 +229,7 @@ public interface ReceiveChannel<out E> {
227
229
public val onReceiveOrNull: SelectClause1 <E ?>
228
230
229
231
/* *
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
231
233
* or is [isClosedForReceive] without cause.
232
234
* It throws the original [close][SendChannel.close] cause exception if the channel has _failed_.
233
235
*/
@@ -273,9 +275,8 @@ public interface ReceiveChannel<out E> {
273
275
*/
274
276
public interface ChannelIterator <out E > {
275
277
/* *
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.
279
280
* It throws the original [close][SendChannel.close] cause exception if the channel has _failed_.
280
281
*
281
282
* This function retrieves and removes the element from this channel for the subsequent invocation
@@ -297,7 +298,7 @@ public interface ChannelIterator<out E> {
297
298
298
299
/* *
299
300
* 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
301
302
* [isClosedForReceive][ReceiveChannel.isClosedForReceive] without cause.
302
303
* It throws the original [close][SendChannel.close] cause exception if the channel has _failed_.
303
304
*
0 commit comments