kotlin.coroutines.experimental.intrinsics.suspendCoroutineOrReturn

suspendCoroutineOrReturn

inline suspend fun <T> suspendCoroutineOrReturn(
    crossinline block: (Continuation<T>) -> Any?
): T

Platform and version requirements: Kotlin 1.1

Obtains the current continuation instance inside suspend functions and either suspend currently running coroutine or return result immediately without suspension.

If the 登录查看完整内容