Skip to content

Commit

Permalink
Fix typo: onDeliveredElement (Kotlin#3217)
Browse files Browse the repository at this point in the history
onDeliveredElement -> onUndeliveredElement
  • Loading branch information
InsaneDoggo authored and pablobaxter committed Sep 14, 2022
1 parent 6974e19 commit d57ee3d
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 d57ee3d

Please sign in to comment.