Remove coroutineContext from kotlin.coroutines.experimental.intrinsics package

#KT-22400: Fixed
This commit is contained in:
Ilmir Usmanov
2018-05-04 18:24:29 +03:00
parent 54ca2cbbe0
commit 5e4ce4f880
13 changed files with 149 additions and 198 deletions
@@ -52,26 +52,6 @@ public suspend inline fun <T> suspendCoroutineUninterceptedOrReturn(crossinline
public inline fun <T> Continuation<T>.intercepted(): Continuation<T> =
throw NotImplementedError("Implementation of intercepted is intrinsic")
/**
* Continuation context of current coroutine.
*
* This allows the user code to not pass an extra [CoroutineContext] parameter in basic coroutine builders
* like [launch](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/launch.html)
* and [async](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/async.html),
* but still provide easy access to coroutine context.
*/
@SinceKotlin("1.2")
@Suppress("WRONG_MODIFIER_TARGET")
@Deprecated(
"Use kotlin.coroutines.experimental.coroutineContext instead",
ReplaceWith("kotlin.coroutines.experimental.coroutineContext"),
DeprecationLevel.ERROR
)
public suspend inline val coroutineContext: CoroutineContext
get() {
throw NotImplementedError("Implemented as intrinsic")
}
/**
* This value is used as a return value of [suspendCoroutineOrReturn] `block` argument to state that
* the execution was suspended and will not return any result immediately.