Skip to content

Commit

Permalink
Fix typo: onDeliveredElement (#3217)
Browse files Browse the repository at this point in the history
onDeliveredElement -> onUndeliveredElement
  • Loading branch information
InsaneDoggo committed Mar 16, 2022
1 parent bc120a1 commit 584b3c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/common/src/channels/Channel.kt
Expand Up @@ -684,7 +684,7 @@ public interface ChannelIterator<out E> {
* exception which is either rethrown from the caller method or handed off to the exception handler in the current context
* (see [CoroutineExceptionHandler]) when one is available.
*
* A typical usage for `onDeliveredElement` is to close a resource that is being transferred via the channel. The
* A typical usage for `onUndeliveredElement` is to close a resource that is being transferred via the channel. The
* following code pattern guarantees that opened resources are closed even if producer, consumer, and/or channel
* are cancelled. Resources are never lost.
*
Expand Down

0 comments on commit 584b3c4

Please sign in to comment.