Home
last modified time | relevance | path

Searched refs:invokeOnCompletion (Results 1 – 25 of 42) sorted by relevance

12

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DJobTest.kt24 job.invokeOnCompletion { fireCount++ } in <lambda>()
42 for (i in 0 until n) job.invokeOnCompletion { fireCount[i]++ } in <lambda>()
62 registration = job.invokeOnCompletion { in <lambda>()
84 … val registrations = Array<DisposableHandle>(n) { i -> job.invokeOnCompletion { fireCount[i]++ } } in <lambda>()
99 for (i in 0 until n) job.invokeOnCompletion { in <lambda>()
125 val handler = job.invokeOnCompletion { fireCount++ } in <lambda>()
136 val handlers = Array(handlerCount) { job.invokeOnCompletion { fireCount++ } } in <lambda>()
168 job.invokeOnCompletion(onCancelling = true) { in <lambda>()
214 coroutineContext[Job]!!.invokeOnCompletion { } in <lambda>()
DAbstractCoroutineTest.kt36 coroutine.invokeOnCompletion(onCancelling = true) { in <lambda>()
41 coroutine.invokeOnCompletion { in <lambda>()
76 coroutine.invokeOnCompletion(onCancelling = true) { in <lambda>()
81 coroutine.invokeOnCompletion { in <lambda>()
DAsyncTest.kt244 coroutineContext[Job]!!.invokeOnCompletion { } in <lambda>()
258 coroutineContext[Job]!!.invokeOnCompletion { } in <lambda>()
DCompletableDeferredTest.kt32 assertEquals(true, c.complete(c.invokeOnCompletion { })) in testCompleteWithIncompleteResult()
34 assertEquals(false, c.complete(c.invokeOnCompletion { })) in testCompleteWithIncompleteResult()
DLaunchLazyTest.kt62 job.invokeOnCompletion { in <lambda>()
DExperimentalDispatchModeTest.kt49 job.invokeOnCompletion { expect(2) } in <lambda>()
DWithTimeoutTest.kt198 timeoutJob.invokeOnCompletion { } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DJobStructuredJoinStressTest.kt27 job.invokeOnCompletion { cont.resume(Unit) } in <lambda>()
36 job.invokeOnCompletion { cont.resume(Unit) } in <lambda>()
DJobStressTest.kt15 for (i in 0 until n) job.invokeOnCompletion { fireCount++ }.dispose() in testMemoryRelease()
DJobDisposeStressTest.kt42 val handle = job.invokeOnCompletion(onCancelling = true) { /* nothing */ } in <lambda>()
DJobActivationStressTest.kt42 d.invokeOnCompletion { in <lambda>()
DJobHandlersUpgradeStressTest.kt65 … job.invokeOnCompletion(onCancelling = onCancelling, invokeImmediately = invokeImmediately) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DNonCancellable.kt79 override fun invokeOnCompletion(handler: CompletionHandler): DisposableHandle = in getCancellationException() method
87 …override fun invokeOnCompletion(onCancelling: Boolean, invokeImmediately: Boolean, handler: Comple… in getCancellationException() method
DJob.kt308 public fun invokeOnCompletion(handler: CompletionHandler): DisposableHandle in getCancellationException() method
351 public fun invokeOnCompletion( in getCancellationException() method
493 invokeOnCompletion(handler = DisposeOnCompletion(this, handle).asHandler) in childCancelled()
DJobSupport.kt448 public final override fun invokeOnCompletion(handler: CompletionHandler): DisposableHandle = in <lambda>() method
449 invokeOnCompletion(onCancelling = false, invokeImmediately = true, handler = handler) in <lambda>()
451 public final override fun invokeOnCompletion( in <lambda>() method
556 … cont.disposeOnCancellation(invokeOnCompletion(handler = ResumeOnCompletion(this, cont).asHandler)) in <lambda>()
576 …select.disposeOnSelect(invokeOnCompletion(handler = SelectJoinOnCompletion(this, select, block).as… in <lambda>()
915 val handle = child.childJob.invokeOnCompletion( in <lambda>()
967 …return invokeOnCompletion(onCancelling = true, handler = ChildHandleNode(this, child).asHandler) a… in <lambda>()
1230 … cont.disposeOnCancellation(invokeOnCompletion(ResumeAwaitOnCompletion(this, cont).asHandler)) in <lambda>()
1257 …select.disposeOnSelect(invokeOnCompletion(handler = SelectAwaitOnCompletion(this, select, block).a… in <lambda>()
DAwait.kt79 handle = deferred.invokeOnCompletion(asHandler) in await()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DSuppressionTests.kt41 coroutine.invokeOnCompletion(onCancelling = true) { in <lambda>()
47 coroutine.invokeOnCompletion { in <lambda>()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/src/future/
DFuture.kt75 invokeOnCompletion { in asCompletableFuture()
92 invokeOnCompletion { cause -> in asCompletableFuture()
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/test/
DRunBlockingTest.kt13 coroutineContext[Job]!!.invokeOnCompletion { } in testIncompleteState()
/external/kotlinx.coroutines/kotlinx-coroutines-debug/test/
DLazyCoroutineTest.kt15 job.invokeOnCompletion { expect(2) } in <lambda>()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/src/
DListenableFuture.kt152 deferred.invokeOnCompletion { in asDeferred()
350 deferred.invokeOnCompletion { in afterInit()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DFuture.kt23invokeOnCompletion(handler = CancelFutureOnCompletion(this, future)) // TODO make it work only on … in cancelFutureOnCompletion()
DInterruptible.kt97 …cancelHandle = job.invokeOnCompletion(onCancelling = true, invokeImmediately = true, handler = thi… in setup()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/
DPromise.kt37 invokeOnCompletion { in <lambda>()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-play-services/src/
DTasks.kt28 invokeOnCompletion callback@{ in <lambda>()

12