Home
last modified time | relevance | path

Searched refs:onCompletion (Results 1 – 25 of 35) sorted by relevance

12

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/
DOnCompletionTest.kt21 }.onCompletion { in <lambda>()
35 }.onCompletion { in <lambda>()
52 }.onCompletion { in <lambda>()
67 flowOf(1).onCompletion { in <lambda>()
73 }.onCompletion { in <lambda>()
88 }.onCompletion { in <lambda>()
100 flowOf(1).onCompletion { in <lambda>()
120 .onCompletion() { emit("Done") } in <lambda>()
145 .onCompletion { e -> in <lambda>()
172 .onCompletion { e -> in <lambda>()
[all …]
DFlatMapMergeTest.kt49 .onCompletion { expect(5) } in <lambda>()
52 flowOf(it).onCompletion { expectUnreached() } } in <lambda>()
53 .onCompletion { expect(6) } in <lambda>()
DFlowOnTest.kt288 .onCompletion { expect(4) } in <lambda>()
290 .onCompletion { expect(5) } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/channels/
DProduce.kt99 …produce(context, capacity, BufferOverflow.SUSPEND, CoroutineStart.DEFAULT, onCompletion = null, bl… in produce()
118 onCompletion: CompletionHandler? = null, in produce()
121 produce(context, capacity, BufferOverflow.SUSPEND, start, onCompletion, block) in produce()
129 onCompletion: CompletionHandler? = null, in produce()
135 if (onCompletion != null) coroutine.invokeOnCompletion(handler = onCompletion) in produce()
DBroadcast.kt50 …return scope.broadcast(capacity = capacity, start = start, onCompletion = { cancelConsumed(it) }) { in <lambda>()
113 onCompletion: CompletionHandler? = null, in broadcast()
121 if (onCompletion != null) coroutine.invokeOnCompletion(handler = onCompletion) in broadcast()
DChannels.common.kt691 GlobalScope.produce(context, onCompletion = consumes()) { in drop()
719 GlobalScope.produce(context, onCompletion = consumes()) { in dropWhile()
745 GlobalScope.produce(context, onCompletion = consumes()) { in filter()
767 GlobalScope.produce(context, onCompletion = consumes()) { in filterIndexed()
985 GlobalScope.produce(context, onCompletion = consumes()) { in take()
1011 GlobalScope.produce(context, onCompletion = consumes()) { in takeWhile()
1285 GlobalScope.produce(context, onCompletion = consumes()) { in toMutableList()
1393 GlobalScope.produce(context, onCompletion = consumes()) { in map()
1416 GlobalScope.produce(context, onCompletion = consumes()) { in mapIndexed()
1651 GlobalScope.produce(context, onCompletion = consumes()) { in withIndex()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/channels/
DActor.kt113 onCompletion: CompletionHandler? = null, in actor()
121 if (onCompletion != null) coroutine.invokeOnCompletion(handler = onCompletion) in actor()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/terminal/
DLaunchInTest.kt21 }.onCompletion { in <lambda>()
50 }.onCompletion { in <lambda>()
/external/kotlinx.atomicfu/atomicfu/src/jvmMain/kotlin/kotlinx/atomicfu/
DLockFreedomTestEnvironment.kt40 private val onCompletion = mutableListOf<() -> Unit>() in <lambda>() constant in kotlinx.atomicfu.LockFreedomTestEnvironment
103 onCompletion.forEach { it() } in <lambda>()
194 public fun onCompletion(block: () -> Unit) { in <lambda>() method in kotlinx.atomicfu.LockFreedomTestEnvironment
195 onCompletion += block in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-flow-32.kt15 .onCompletion { println("Done") } in <lambda>()
Dexample-flow-34.kt15 .onCompletion { cause -> println("Flow completed with $cause") } in <lambda>()
Dexample-flow-33.kt18 .onCompletion { cause -> if (cause != null) println("Flow completed exceptionally") } in <lambda>()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/scheduler/
DForkJoinBenchmark.kt150 override fun onCompletion(caller: CountedCompleter<*>?) { in onCompletion() method in benchmarks.scheduler.ForkJoinBenchmark
154 super.onCompletion(caller) in onCompletion()
/external/kotlinx.coroutines/kotlinx-coroutines-debug/test/
DDebugTestBase.kt30 onCompletion() in tearDown()
DToStringTest.kt28 onCompletion() in tearDown()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/flow/
DOnCompletionInterceptedReleaseTest.kt20 .onCompletion { emit(1) } in <lambda>()
DSharingStressTest.kt157 .onCompletion { in <lambda>()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/
DChannelSinkBenchmark.kt57 GlobalScope.produce(context, onCompletion = { cancel() }) { in <lambda>()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowMediaPlayerTest.java297 Mockito.verify(completionListener).onCompletion(mediaPlayer); in testPlaybackProgress()
334 Mockito.verify(completionListener).onCompletion(mediaPlayer); in testPauseReschedulesCompletionCallback()
370 Mockito.verify(completionListener).onCompletion(mediaPlayer); in testSeekDuringPlaybackReschedulesCompletionCallback()
867 Mockito.verify(completionListener).onCompletion(mediaPlayer); in testCompletionListener()
998 Mockito.verify(completionListener).onCompletion(mediaPlayer); in testSeekWhileSeekingWhilePlaying()
1126 Mockito.verify(completionListener).onCompletion(mediaPlayer); in testErrorListenerCalledOnCompleteCalledWhenReturnFalse()
1136 Mockito.verify(completionListener).onCompletion(mediaPlayer); in testErrorCausesOnCompleteCalledWhenNoErrorListener()
1376 Mockito.verify(completionListener).onCompletion(mediaPlayer); in testSetLoopingCalledWhilePlaying()
DShadowVideoViewTest.java161 public void onCompletion(MediaPlayer mp) {} in onCompletion() method in ShadowVideoViewTest.TestCompletionListener
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/channels/
DChannelLFStressTest.kt45 env.onCompletion { in performLockFreedomTest()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/
DEmitters.kt144 public fun <T> Flow<T>.onCompletion( in onCompletion() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/selects/
DSelectDeadlockLFStressTest.kt35 env.onCompletion { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/channels/
DProduceTest.kt166 … val produced = produce<Int>(coroutineContext, onCompletion = { source.cancelConsumed(it) }) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DTestBase.kt149 fun onCompletion() { in <lambda>() method

12