From 584b3c4377660d348ec6f96d53d8045de9ea7c3e Mon Sep 17 00:00:00 2001 From: CeH9 Date: Wed, 16 Mar 2022 11:21:23 +0200 Subject: [PATCH] Fix typo: onDeliveredElement (#3217) onDeliveredElement -> onUndeliveredElement --- kotlinx-coroutines-core/common/src/channels/Channel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlinx-coroutines-core/common/src/channels/Channel.kt b/kotlinx-coroutines-core/common/src/channels/Channel.kt index 68ed5f1e78..5ad79fdcff 100644 --- a/kotlinx-coroutines-core/common/src/channels/Channel.kt +++ b/kotlinx-coroutines-core/common/src/channels/Channel.kt @@ -684,7 +684,7 @@ public interface ChannelIterator { * 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. *