Promote CancellationException to stable #KT-41837

This commit is contained in:
Abduqodiri Qurbonzoda
2020-10-22 02:00:30 +03:00
parent caafe21e84
commit 2fd7d64db0
5 changed files with 0 additions and 9 deletions
@@ -1,4 +1,3 @@
@kotlin.ExperimentalStdlibApi
@kotlin.SinceKotlin(version = "1.4")
public open class CancellationException : kotlin.IllegalStateException {
public constructor CancellationException()
@@ -1,4 +1,3 @@
@kotlin.ExperimentalStdlibApi
@kotlin.SinceKotlin(version = "1.4")
public open class CancellationException : kotlin.IllegalStateException {
public constructor CancellationException()
@@ -5,7 +5,6 @@
package kotlin.coroutines.cancellation
@ExperimentalStdlibApi
@SinceKotlin("1.4")
public actual open class CancellationException : IllegalStateException {
actual constructor() : super()
@@ -7,18 +7,15 @@ package kotlin.coroutines.cancellation
import kotlin.internal.InlineOnly
@ExperimentalStdlibApi
@SinceKotlin("1.4")
public actual typealias CancellationException = java.util.concurrent.CancellationException
@InlineOnly
@ExperimentalStdlibApi
@SinceKotlin("1.4")
public actual inline fun CancellationException(message: String?, cause: Throwable?): CancellationException {
return CancellationException(message).also { it.initCause(cause) }
}
@InlineOnly
@ExperimentalStdlibApi
@SinceKotlin("1.4")
public actual inline fun CancellationException(cause: Throwable?): CancellationException {
return CancellationException(cause?.toString()).also { it.initCause(cause) }
@@ -9,7 +9,6 @@ package kotlin.coroutines.cancellation
* Thrown by cancellable suspending functions if the coroutine is cancelled while it is suspended.
* It indicates _normal_ cancellation of a coroutine.
*/
@ExperimentalStdlibApi
@SinceKotlin("1.4")
public expect open class CancellationException : IllegalStateException {
public constructor()
@@ -19,7 +18,6 @@ public expect open class CancellationException : IllegalStateException {
/**
* Creates an instance of [CancellationException] with the given [message] and [cause].
*/
@ExperimentalStdlibApi
@SinceKotlin("1.4")
@Suppress("FunctionName", "NO_ACTUAL_FOR_EXPECT")
public expect fun CancellationException(message: String?, cause: Throwable?): CancellationException
@@ -27,7 +25,6 @@ public expect fun CancellationException(message: String?, cause: Throwable?): Ca
/**
* Creates an instance of [CancellationException] with the given [cause].
*/
@ExperimentalStdlibApi
@SinceKotlin("1.4")
@Suppress("FunctionName", "NO_ACTUAL_FOR_EXPECT")
public expect fun CancellationException(cause: Throwable?): CancellationException