Home
last modified time | relevance | path

Searched refs:CancellableContinuation (Results 1 – 25 of 44) sorted by relevance

12

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DReusableCancellableContinuationTest.kt27 suspender: suspend ((CancellableContinuation<Unit>) -> Unit) -> Unit in testContinuationsCount()
29 val result = mutableSetOf<CancellableContinuation<*>>() in testContinuationsCount()
35 result.addAll(f.filterIsInstance<CancellableContinuation<*>>()) in testContinuationsCount()
153 FieldWalker.assertReachableCount(1, currentJob) { it is CancellableContinuation<*> } in <lambda>()
157 FieldWalker.assertReachableCount(0, currentJob) { it is CancellableContinuation<*> } in <lambda>()
166 FieldWalker.assertReachableCount(0, currentJob) { it is CancellableContinuation<*> } in <lambda>()
173 FieldWalker.assertReachableCount(0, currentJob) { it is CancellableContinuation<*> } in <lambda>()
197 FieldWalker.assertReachableCount(2, job) { it is CancellableContinuation<*> } in <lambda>()
202 FieldWalker.assertReachableCount(0, receiver) { it is CancellableContinuation<*> } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DCancellableContinuation.kt48 public interface CancellableContinuation<in T> : Continuation<T> { in <lambda>() interface
306 crossinline block: (CancellableContinuation<T>) -> Unit in suspendCancellableCoroutine()
325 crossinline block: (CancellableContinuation<T>) -> Unit in suspendCancellableCoroutineReusable()
359 internal fun CancellableContinuation<*>.removeOnCancellation(node: LockFreeLinkedListNode) = in removeOnCancellation()
373 public fun CancellableContinuation<*>.disposeOnCancellation(handle: DisposableHandle): Unit = in removeOnCancellation()
DDelay.kt51 … public fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit>) in <lambda>()
118 return suspendCancellableCoroutine sc@ { cont: CancellableContinuation<Unit> -> in delay()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/
DWindow.kt38 private var current = ArrayQueue<CancellableContinuation<Double>>()
39 private var next = ArrayQueue<CancellableContinuation<Double>>()
42 fun enqueue(cont: CancellableContinuation<Double>) { in enqueue()
DJSDispatcher.kt43 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in <lambda>()
80 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in toString()
DPromise.kt68 …d fun <T> Promise<T>.await(): T = suspendCancellableCoroutine { cont: CancellableContinuation<T> -> in await()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DCancellableResumeTest.kt123 lateinit var cc: CancellableContinuation<String> in <lambda>()
142 lateinit var cc: CancellableContinuation<String> in <lambda>()
174 lateinit var cc: CancellableContinuation<String> in <lambda>()
205 lateinit var cc: CancellableContinuation<String> in <lambda>()
245 lateinit var cc: CancellableContinuation<String> in <lambda>()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-javafx/src/
DJavaFxDispatcher.kt37 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in <lambda>()
105 val next = CopyOnWriteArrayList<CancellableContinuation<Long>>()
114 fun onNext(cont: CancellableContinuation<Long>) { in onNext()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/src/
DHandlerDispatcher.kt135 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in scheduleResumeAfterDelay()
183 private fun updateChoreographerAndPostFrameCallback(cont: CancellableContinuation<Long>) { in updateChoreographerAndPostFrameCallback()
189 private fun postFrameCallback(choreographer: Choreographer, cont: CancellableContinuation<Long>) { in postFrameCallback()
/external/kotlinx.coroutines/kotlinx-coroutines-test/src/
DTestCoroutineDispatcher.kt63 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in <lambda>()
191 @JvmField val continuation: CancellableContinuation<T>,
192 private val block: CancellableContinuation<T>.() -> Unit
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/sync/
DSemaphore.kt195 private fun addAcquireToQueue(cont: CancellableContinuation<Unit>): Boolean { in addAcquireToQueue()
240 else -> return (cellState as CancellableContinuation<Unit>).tryResumeAcquire() in tryResumeNextFromQueue()
244 private fun CancellableContinuation<Unit>.tryResumeAcquire(): Boolean { in tryResumeAcquire() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/linearizability/
DChannelsLCStressTest.kt129 private val senders = ArrayList<Pair<CancellableContinuation<Any>, Int>>()
130 private val receivers = ArrayList<CancellableContinuation<Any>>()
220 private fun <T> CancellableContinuation<T>.resume(res: T): Boolean { in extractState()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DExecutors.kt107 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in scheduleResumeAfterDelay()
158 private val continuation: CancellableContinuation<Unit> in toString()
DFuture.kt32 public fun CancellableContinuation<*>.cancelFutureOnCancellation(future: Future<*>): Unit = in cancelFutureOnCompletion()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/channels/
DAbstractChannel.kt572 ReceiveElement(cont as CancellableContinuation<Any?>, receiveMode) else in receiveSuspend()
573 …ReceiveElementWithUndeliveredHandler(cont as CancellableContinuation<Any?>, receiveMode, onUndeliv… in receiveSuspend()
812 private fun removeReceiveOnCancel(cont: CancellableContinuation<*>, receive: Receive<*>) = in removeReceiveOnCancel()
883 @JvmField val cont: CancellableContinuation<Any?>,
912 cont: CancellableContinuation<Any?>, in toString()
922 @JvmField val cont: CancellableContinuation<Boolean>
1067 @JvmField val cont: CancellableContinuation<Unit> in tryResumeReceive()
1084 cont: CancellableContinuation<Unit>,
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/src/
DRxAwait.kt9 import kotlinx.coroutines.CancellableContinuation in <lambda>()
153 internal fun CancellableContinuation<*>.disposeOnCancellation(d: Disposable) = in awaitFirst()
DRxScheduler.kt33 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in asCoroutineDispatcher()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/src/
DRxAwait.kt9 import kotlinx.coroutines.CancellableContinuation in <lambda>()
153 internal fun CancellableContinuation<*>.disposeOnCancellation(d: Disposable) = in awaitFirst()
DRxScheduler.kt33 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in asCoroutineDispatcher()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/src/
DListenableFuture.kt232 return suspendCancellableCoroutine { cont: CancellableContinuation<T> -> in await()
251 val continuation: CancellableContinuation<T>
/external/kotlinx.coroutines/ui/kotlinx-coroutines-swing/api/
Dkotlinx-coroutines-swing.api5 public fun scheduleResumeAfterDelay (JLkotlinx/coroutines/CancellableContinuation;)V
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/src/
DScheduler.kt34 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in asCoroutineDispatcher()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-javafx/api/
Dkotlinx-coroutines-javafx.api9 public fun scheduleResumeAfterDelay (JLkotlinx/coroutines/CancellableContinuation;)V
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/
DCoroutineContext.kt17 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in takeEventLoop()
/external/kotlinx.coroutines/kotlinx-coroutines-test/src/internal/
DMainTestDispatcher.kt41 …override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit… in isDispatchNeeded()

12