@@ -41,7 +41,7 @@ public interface SendChannel<in E> {
4141 * All elements sent over the channel are delivered in first-in first-out order. The sent element
4242 * will be delivered to receivers before the close token.
4343 *
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
4545 * suspending function is waiting, this function immediately resumes with [CancellationException].
4646 * There is a **prompt cancellation guarantee**: even if [send] managed to send the element, but was cancelled
4747 * while suspended, [CancellationException] will be thrown. See [suspendCancellableCoroutine] for low-level details.
@@ -212,14 +212,14 @@ public interface ReceiveChannel<out E> {
212212 * If the channel was closed because of an exception, it is called a _failed_ channel and this function
213213 * will throw the original [close][SendChannel.close] cause exception.
214214 *
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
216216 * function is suspended, this function immediately resumes with a [CancellationException].
217217 * There is a **prompt cancellation guarantee**. If the job was cancelled while this function was
218218 * suspended, it will not resume successfully. The `receive` call can retrieve the element from the channel,
219219 * but then throw [CancellationException], thus failing to deliver the element.
220220 * See "Undelivered elements" section in [Channel] documentation for details on handling undelivered elements.
221221 *
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
223223 * suspending function is waiting, this function immediately resumes with [CancellationException].
224224 * There is a **prompt cancellation guarantee**: even if [receive] managed to retrieve the element from the channel,
225225 * but was cancelled while suspended, [CancellationException] will be thrown.
@@ -250,7 +250,7 @@ public interface ReceiveChannel<out E> {
250250 * or the close cause if the channel was closed. Closed cause may be `null` if the channel was closed normally.
251251 * The result cannot be [failed][ChannelResult.isFailure] without being [closed][ChannelResult.isClosed].
252252 *
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
254254 * suspending function is waiting, this function immediately resumes with [CancellationException].
255255 * There is a **prompt cancellation guarantee**: even if [receiveCatching] managed to retrieve the element from the
256256 * channel, but was cancelled while suspended, [CancellationException] will be thrown.
@@ -573,7 +573,7 @@ public interface ChannelIterator<out E> {
573573 * This function retrieves and removes an element from this channel for the subsequent invocation
574574 * of [next].
575575 *
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
577577 * suspending function is waiting, this function immediately resumes with [CancellationException].
578578 * There is a **prompt cancellation guarantee**: even if [hasNext] retrieves the element from the channel during
579579 * its operation, but was cancelled while suspended, [CancellationException] will be thrown.
0 commit comments