Skip to content

Commit 584b3c4

Browse files
authored
Fix typo: onDeliveredElement (#3217)
onDeliveredElement -> onUndeliveredElement
1 parent bc120a1 commit 584b3c4

File tree

1 file changed

+1
-1
lines changed
  • kotlinx-coroutines-core/common/src/channels

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/channels/Channel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ public interface ChannelIterator<out E> {
684684
* exception which is either rethrown from the caller method or handed off to the exception handler in the current context
685685
* (see [CoroutineExceptionHandler]) when one is available.
686686
*
687-
* A typical usage for `onDeliveredElement` is to close a resource that is being transferred via the channel. The
687+
* A typical usage for `onUndeliveredElement` is to close a resource that is being transferred via the channel. The
688688
* following code pattern guarantees that opened resources are closed even if producer, consumer, and/or channel
689689
* are cancelled. Resources are never lost.
690690
*

0 commit comments

Comments
 (0)