Skip to content

Commit 820c70d

Browse files
authored
runInterruptible: mention Java's doc on interrupts (#3638)
1 parent 28271c4 commit 820c70d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kotlinx-coroutines-core/jvm/src/Interruptible.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2016-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package kotlinx.coroutines
@@ -8,7 +8,8 @@ import kotlinx.atomicfu.*
88
import kotlin.coroutines.*
99

1010
/**
11-
* Calls the specified [block] with a given coroutine context in an interruptible manner.
11+
* Calls the specified [block] with a given coroutine context in
12+
* [an interruptible manner](https://docs.oracle.com/javase/tutorial/essential/concurrency/interrupt.html).
1213
* The blocking code block will be interrupted and this function will throw [CancellationException]
1314
* if the coroutine is cancelled.
1415
*

0 commit comments

Comments
 (0)