@@ -41,7 +41,7 @@ public interface SendChannel<in E> {
41
41
* All elements sent over the channel are delivered in first-in first-out order. The sent element
42
42
* will be delivered to receivers before the close token.
43
43
*
44
- * This suspending function is cancellable: if the [Job] of the current coroutine is cancelled or completed while this
44
+ * This suspending function is cancellable: if the [Job] of the current coroutine is cancelled while this
45
45
* suspending function is waiting, this function immediately resumes with [CancellationException].
46
46
* There is a **prompt cancellation guarantee**: even if [send] managed to send the element, but was cancelled
47
47
* while suspended, [CancellationException] will be thrown. See [suspendCancellableCoroutine] for low-level details.
@@ -212,14 +212,14 @@ public interface ReceiveChannel<out E> {
212
212
* If the channel was closed because of an exception, it is called a _failed_ channel and this function
213
213
* will throw the original [close][SendChannel.close] cause exception.
214
214
*
215
- * This suspending function is cancellable. If the [Job] of the current coroutine is cancelled or completed while this
215
+ * This suspending function is cancellable. If the [Job] of the current coroutine is cancelled while this
216
216
* function is suspended, this function immediately resumes with a [CancellationException].
217
217
* There is a **prompt cancellation guarantee**. If the job was cancelled while this function was
218
218
* suspended, it will not resume successfully. The `receive` call can retrieve the element from the channel,
219
219
* but then throw [CancellationException], thus failing to deliver the element.
220
220
* See "Undelivered elements" section in [Channel] documentation for details on handling undelivered elements.
221
221
*
222
- * This suspending function is cancellable: if the [Job] of the current coroutine is cancelled or completed while this
222
+ * This suspending function is cancellable: if the [Job] of the current coroutine is cancelled while this
223
223
* suspending function is waiting, this function immediately resumes with [CancellationException].
224
224
* There is a **prompt cancellation guarantee**: even if [receive] managed to retrieve the element from the channel,
225
225
* but was cancelled while suspended, [CancellationException] will be thrown.
@@ -250,7 +250,7 @@ public interface ReceiveChannel<out E> {
250
250
* or the close cause if the channel was closed. Closed cause may be `null` if the channel was closed normally.
251
251
* The result cannot be [failed][ChannelResult.isFailure] without being [closed][ChannelResult.isClosed].
252
252
*
253
- * This suspending function is cancellable: if the [Job] of the current coroutine is cancelled or completed while this
253
+ * This suspending function is cancellable: if the [Job] of the current coroutine is cancelled while this
254
254
* suspending function is waiting, this function immediately resumes with [CancellationException].
255
255
* There is a **prompt cancellation guarantee**: even if [receiveCatching] managed to retrieve the element from the
256
256
* channel, but was cancelled while suspended, [CancellationException] will be thrown.
@@ -573,7 +573,7 @@ public interface ChannelIterator<out E> {
573
573
* This function retrieves and removes an element from this channel for the subsequent invocation
574
574
* of [next].
575
575
*
576
- * This suspending function is cancellable: if the [Job] of the current coroutine is cancelled or completed while this
576
+ * This suspending function is cancellable: if the [Job] of the current coroutine is cancelled while this
577
577
* suspending function is waiting, this function immediately resumes with [CancellationException].
578
578
* There is a **prompt cancellation guarantee**: even if [hasNext] retrieves the element from the channel during
579
579
* its operation, but was cancelled while suspended, [CancellationException] will be thrown.
0 commit comments