Home
last modified time | relevance | path

Searched refs:currentCoroutineContext (Results 1 – 18 of 18) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/
DEmitters.kt77 val safeCollector = SafeCollector<T>(this, currentCoroutineContext()) in onStart()
159 val sc = SafeCollector(this, currentCoroutineContext()) in onCompletion()
188 val collector = SafeCollector(this, currentCoroutineContext()) in onEmpty()
DContext.kt274 currentCoroutineContext().ensureActive() in collect()
328 val originalContext = currentCoroutineContext().minusKey(Job) in flowWith()
DShare.kt405 val safeCollector = SafeCollector(collector, currentCoroutineContext()) in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/test/
DBackpressureTest.kt44 …flow.onEach { if (it > 10) currentCoroutineContext().cancel() }.launchIn(this + Dispatchers.Defaul… in <lambda>()
50 …val channel = flow.onEach { if (it > 10) currentCoroutineContext().cancel() }.produceIn(this + Dis… in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/flow/internal/
DSafeCollector.kt21 val currentContext = currentCoroutineContext() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/flow/internal/
DSafeCollector.kt21 val currentContext = currentCoroutineContext() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/
DCancellableTest.kt18 if (it != 0) currentCoroutineContext().cancel() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/flow/
DStateFlowCancellabilityTest.kt31 currentCoroutineContext().cancel() in <lambda>()
DFlowCancellationTest.kt36 while (currentCoroutineContext().isActive) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/sharing/
DShareInFusionTest.kt28 assertEquals("FlowCtx", currentCoroutineContext()[CoroutineName]?.name) in <lambda>()
DStateInTest.kt86 …assertFailsWith<TestException> { flow.stateIn(CoroutineScope(currentCoroutineContext() + Job() + c… in <lambda>()
DSharedFlowTest.kt593 currentCoroutineContext().cancel() in <lambda>()
786 currentCoroutineContext().cancel() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DCoroutineScope.kt259 public suspend inline fun currentCoroutineContext(): CoroutineContext = coroutineContext method
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactive/test/
DPublisherRequestStressTest.kt131 while (currentCoroutineContext().isActive) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/
DStateFlow.kt331 val collectorJob = currentCoroutineContext()[Job] in collect()
DSharedFlow.kt306 val collectorJob = currentCoroutineContext()[Job] in collect()
/external/kotlinx.coroutines/
DCHANGES.md98 * New `currentCoroutineContext` function to use unambiguously in the contexts with `CoroutineScope`…
1133 * Removed `currentCoroutineContext` and related thread-locals without replacement.
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api218 …public static final fun currentCoroutineContext (Lkotlin/coroutines/Continuation;)Ljava/lang/Objec…