Rename SUSPENDED_MARKER to COROUTINE_SUSPENDED
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ class Controller {
|
||||
suspend fun noParams(): Unit = suspendCoroutineOrReturn {
|
||||
if (hashCode() % 2 == 0) {
|
||||
it.resume(Unit)
|
||||
SUSPENDED_MARKER
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
else {
|
||||
Unit
|
||||
|
||||
Vendored
+1
-1
@@ -4,5 +4,5 @@ import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
suspend fun suspendLogAndThrow(exception: Throwable): Nothing = suspendCoroutineOrReturn { c ->
|
||||
c.resumeWithException(exception)
|
||||
SUSPENDED_MARKER
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user