From e2a6b16481f299485056ad0e96049379610bd0e0 Mon Sep 17 00:00:00 2001 From: Ivan Migalev Date: Wed, 22 Feb 2023 20:38:50 +0100 Subject: [PATCH] runInterruptible: mention Java's doc on interrupts --- kotlinx-coroutines-core/jvm/src/Interruptible.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kotlinx-coroutines-core/jvm/src/Interruptible.kt b/kotlinx-coroutines-core/jvm/src/Interruptible.kt index 0bded76517..8129be7bfe 100644 --- a/kotlinx-coroutines-core/jvm/src/Interruptible.kt +++ b/kotlinx-coroutines-core/jvm/src/Interruptible.kt @@ -1,5 +1,5 @@ /* - * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + * Copyright 2016-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.coroutines @@ -8,7 +8,8 @@ import kotlinx.atomicfu.* import kotlin.coroutines.* /** - * Calls the specified [block] with a given coroutine context in an interruptible manner. + * Calls the specified [block] with a given coroutine context in + * [an interruptible manner](https://docs.oracle.com/javase/tutorial/essential/concurrency/interrupt.html). * The blocking code block will be interrupted and this function will throw [CancellationException] * if the coroutine is cancelled. *