Home
last modified time | relevance | path

Searched refs:suspendCancellableCoroutine (Results 1 – 25 of 39) sorted by relevance

12

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DCancellableContinuationHandlersTest.kt16 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
24 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
36 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
49 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
65 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
88 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
118 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
134 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
153 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
DCancellableResumeTest.kt18 val ok = suspendCancellableCoroutine<String> { cont -> in <lambda>()
33 suspendCancellableCoroutine<String> { cont -> in <lambda>()
56 suspendCancellableCoroutine<String> { cont -> in <lambda>()
80 suspendCancellableCoroutine<String> { cont -> in <lambda>()
103 suspendCancellableCoroutine<String> { cont -> in <lambda>()
126 val ok = suspendCancellableCoroutine<String> { cont -> in <lambda>()
146 suspendCancellableCoroutine<String> { cont -> in <lambda>()
178 suspendCancellableCoroutine<String> { cont -> in <lambda>()
209 suspendCancellableCoroutine<String> { cont -> in <lambda>()
249 suspendCancellableCoroutine<String> { cont -> in <lambda>()
[all …]
DCancellableContinuationTest.kt18 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
39 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
57 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
80 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
105 suspendCancellableCoroutine<Unit> { c -> in <lambda>()
126 suspendCancellableCoroutine<Unit> { cont -> in <lambda>()
DTestBase.common.kt33 suspendCancellableCoroutine<Unit> { } in hang()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/src/
DRxAwait.kt12 import kotlinx.coroutines.suspendCancellableCoroutine in <lambda>()
24 public suspend fun CompletableSource.await(): Unit = suspendCancellableCoroutine { cont -> in <lambda>()
55 public suspend fun <T> MaybeSource<T>.awaitOrDefault(default: T): T = suspendCancellableCoroutine {… in await()
74 public suspend fun <T> SingleSource<T>.await(): T = suspendCancellableCoroutine { cont -> in await()
167 ): T = suspendCancellableCoroutine { cont -> in toString()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/src/
DRxAwait.kt12 import kotlinx.coroutines.suspendCancellableCoroutine in <lambda>()
24 public suspend fun CompletableSource.await(): Unit = suspendCancellableCoroutine { cont -> in <lambda>()
55 public suspend fun <T> MaybeSource<T>.awaitOrDefault(default: T): T = suspendCancellableCoroutine {… in await()
74 public suspend fun <T> SingleSource<T>.await(): T = suspendCancellableCoroutine { cont -> in await()
167 ): T = suspendCancellableCoroutine { cont -> in toString()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DDelay.kt33 return suspendCancellableCoroutine { scheduleResumeAfterDelay(time, it) } in <lambda>()
98 public suspend fun awaitCancellation(): Nothing = suspendCancellableCoroutine {} in <lambda>()
118 return suspendCancellableCoroutine sc@ { cont: CancellableContinuation<Unit> -> in delay()
DAwait.kt72 suspend fun await(): List<T> = suspendCancellableCoroutine { cont -> in await()
DCancellableContinuation.kt305 public suspend inline fun <T> suspendCancellableCoroutine( in suspendCancellableCoroutine() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DCancellableContinuationJvmTest.kt17 suspendCancellableCoroutine<Unit> { in checkToString()
27 suspendCancellableCoroutine<Unit> { in <lambda>()
59 private suspend fun BlockingSource.await() = suspendCancellableCoroutine<Unit> { in <lambda>()
DReusableCancellableContinuationTest.kt21 testContinuationsCount(10, 10, ::suspendCancellableCoroutine) in <lambda>()
113 suspendCancellableCoroutine<Unit> { in <lambda>()
DJobStructuredJoinStressTest.kt26 suspendCancellableCoroutine { cont -> in <lambda>()
DCancellableContinuationResumeCloseStressTest.kt50 private suspend fun resumeClose() = suspendCancellableCoroutine<String> { cont -> in <lambda>()
DContinuationSerializationTest.kt59 private suspend fun serializeCancellable() = suspendCancellableCoroutine<Unit> { cont -> in <lambda>()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/tailcall/
DSimpleChannel.kt73 override suspend fun suspendReceive(): Int = suspendCancellableCoroutine { in <lambda>()
78 override suspend fun suspendSend(element: Int) = suspendCancellableCoroutine<Unit> { in <lambda>()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-play-services/src/
DTasks.kt17 import kotlinx.coroutines.suspendCancellableCoroutine in <lambda>()
96 return suspendCancellableCoroutine { cont -> in await()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactive/src/
DAwait.kt9 import kotlinx.coroutines.suspendCancellableCoroutine in <lambda>()
136 ): T = suspendCancellableCoroutine { cont -> in awaitOne()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/src/
DHandlerDispatcher.kt171 return suspendCancellableCoroutine { cont -> in equals()
176 return suspendCancellableCoroutine { cont -> in equals()
/external/kotlinx.coroutines/kotlinx-coroutines-debug/test/junit4/
DCoroutinesTimeoutEagerTest.kt31 suspendCancellableCoroutine<Unit> { } in hangForever()
DCoroutinesTimeoutDisabledTracesTest.kt33 suspendCancellableCoroutine<Unit> { } in hangForever()
/external/kotlinx.coroutines/kotlinx-coroutines-debug/test/
DDebugLeaksTest.kt52 private suspend fun suspendForever() = suspendCancellableCoroutine<Unit> { } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/
DWindow.kt25 public suspend fun Window.awaitAnimationFrame(): Double = suspendCancellableCoroutine { cont -> in cont()
DPromise.kt68 public suspend fun <T> Promise<T>.await(): T = suspendCancellableCoroutine { cont: CancellableConti… in await()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/linearizability/
DChannelsLCStressTest.kt136 false -> suspendCancellableCoroutine { cont -> in offerRes()
166 suspend fun receive(): Any = poll() ?: suspendCancellableCoroutine { cont -> in receive()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/channels/
DProduce.kt52 suspendCancellableCoroutine<Unit> { cont -> in cont()

12