Home
last modified time | relevance | path

Searched refs:tryResume (Results 1 – 8 of 8) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DCancellableContinuation.kt78 public fun tryResume(value: T, idempotent: Any? = null): Any? in <lambda>() method
86 …public fun tryResume(value: T, idempotent: Any?, onCancellation: ((cause: Throwable) -> Unit)?): A… in <lambda>() method
DCancellableContinuationImpl.kt260 private fun tryResume(): Boolean { in <lambda>() method
360 if (tryResume()) return // completed before getResult invocation -- bail out in <lambda>()
467 override fun tryResume(value: T, idempotent: Any?): Any? = in <lambda>() method
470 …override fun tryResume(value: T, idempotent: Any?, onCancellation: ((cause: Throwable) -> Unit)?):… in <lambda>() method
DBuilders.common.kt242 private fun tryResume(): Boolean { in tryResume() method
259 if (tryResume()) return // completed before getResult invocation -- bail out in afterResume()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/channels/
DAbstractChannel.kt892 …val token = cont.tryResume(resumeValue(value), otherOp?.desc, resumeOnCancellationFun(value)) ?: r… in tryResumeReceive()
925 val token = cont.tryResume(true, otherOp?.desc, resumeOnCancellationFun(value)) in tryResumeReceive()
944 cont.tryResume(false) in resumeReceiveClosed()
1070 val token = cont.tryResume(Unit, otherOp?.desc) ?: return null in tryResumeReceive()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/sync/
DSemaphore.kt245 val token = tryResume(Unit, null, onCancellationRelease) ?: return false in tryResumeAcquire()
DMutex.kt363 override fun tryResumeLockWaiter() = cont.tryResume(Unit, idempotent = null) { in toString()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/linearizability/
DChannelsLCStressTest.kt221 val token = tryResume(res) ?: return false in extractState()
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api48 public abstract fun tryResume (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
49 …public abstract fun tryResume (Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1…
55 …public static synthetic fun tryResume$default (Lkotlinx/coroutines/CancellableContinuation;Ljava/l…
80 public fun tryResume (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
81 …public fun tryResume (Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Ljava/l…