Promote CancellationException to stable #KT-41837
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
@kotlin.ExperimentalStdlibApi
|
|
||||||
@kotlin.SinceKotlin(version = "1.4")
|
@kotlin.SinceKotlin(version = "1.4")
|
||||||
public open class CancellationException : kotlin.IllegalStateException {
|
public open class CancellationException : kotlin.IllegalStateException {
|
||||||
public constructor CancellationException()
|
public constructor CancellationException()
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
@kotlin.ExperimentalStdlibApi
|
|
||||||
@kotlin.SinceKotlin(version = "1.4")
|
@kotlin.SinceKotlin(version = "1.4")
|
||||||
public open class CancellationException : kotlin.IllegalStateException {
|
public open class CancellationException : kotlin.IllegalStateException {
|
||||||
public constructor CancellationException()
|
public constructor CancellationException()
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
package kotlin.coroutines.cancellation
|
package kotlin.coroutines.cancellation
|
||||||
|
|
||||||
@ExperimentalStdlibApi
|
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
public actual open class CancellationException : IllegalStateException {
|
public actual open class CancellationException : IllegalStateException {
|
||||||
actual constructor() : super()
|
actual constructor() : super()
|
||||||
|
|||||||
@@ -7,18 +7,15 @@ package kotlin.coroutines.cancellation
|
|||||||
|
|
||||||
import kotlin.internal.InlineOnly
|
import kotlin.internal.InlineOnly
|
||||||
|
|
||||||
@ExperimentalStdlibApi
|
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
public actual typealias CancellationException = java.util.concurrent.CancellationException
|
public actual typealias CancellationException = java.util.concurrent.CancellationException
|
||||||
|
|
||||||
@InlineOnly
|
@InlineOnly
|
||||||
@ExperimentalStdlibApi
|
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
public actual inline fun CancellationException(message: String?, cause: Throwable?): CancellationException {
|
public actual inline fun CancellationException(message: String?, cause: Throwable?): CancellationException {
|
||||||
return CancellationException(message).also { it.initCause(cause) }
|
return CancellationException(message).also { it.initCause(cause) }
|
||||||
}
|
}
|
||||||
@InlineOnly
|
@InlineOnly
|
||||||
@ExperimentalStdlibApi
|
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
public actual inline fun CancellationException(cause: Throwable?): CancellationException {
|
public actual inline fun CancellationException(cause: Throwable?): CancellationException {
|
||||||
return CancellationException(cause?.toString()).also { it.initCause(cause) }
|
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.
|
* Thrown by cancellable suspending functions if the coroutine is cancelled while it is suspended.
|
||||||
* It indicates _normal_ cancellation of a coroutine.
|
* It indicates _normal_ cancellation of a coroutine.
|
||||||
*/
|
*/
|
||||||
@ExperimentalStdlibApi
|
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
public expect open class CancellationException : IllegalStateException {
|
public expect open class CancellationException : IllegalStateException {
|
||||||
public constructor()
|
public constructor()
|
||||||
@@ -19,7 +18,6 @@ public expect open class CancellationException : IllegalStateException {
|
|||||||
/**
|
/**
|
||||||
* Creates an instance of [CancellationException] with the given [message] and [cause].
|
* Creates an instance of [CancellationException] with the given [message] and [cause].
|
||||||
*/
|
*/
|
||||||
@ExperimentalStdlibApi
|
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
@Suppress("FunctionName", "NO_ACTUAL_FOR_EXPECT")
|
@Suppress("FunctionName", "NO_ACTUAL_FOR_EXPECT")
|
||||||
public expect fun CancellationException(message: String?, cause: Throwable?): CancellationException
|
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].
|
* Creates an instance of [CancellationException] with the given [cause].
|
||||||
*/
|
*/
|
||||||
@ExperimentalStdlibApi
|
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
@Suppress("FunctionName", "NO_ACTUAL_FOR_EXPECT")
|
@Suppress("FunctionName", "NO_ACTUAL_FOR_EXPECT")
|
||||||
public expect fun CancellationException(cause: Throwable?): CancellationException
|
public expect fun CancellationException(cause: Throwable?): CancellationException
|
||||||
Reference in New Issue
Block a user