Home
last modified time | relevance | path

Searched refs:collectJob (Results 1 – 2 of 2) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/internal/
DSafeCollector.common.kt33 val collectJob = collectElement as Job? in checkContext() constant
34 val emissionParentJob = (element as Job).transitiveCoroutineParent(collectJob) in checkContext()
66 if (emissionParentJob !== collectJob) { in checkContext()
70 "\t\tChild of $emissionParentJob, expected child of $collectJob.\n" + in checkContext()
81 if (collectJob == null) count else count + 1 in checkContext()
93 internal tailrec fun Job?.transitiveCoroutineParent(collectJob: Job?): Job? { in transitiveCoroutineParent()
95 if (this === collectJob) return this in transitiveCoroutineParent()
97 return parent.transitiveCoroutineParent(collectJob) in transitiveCoroutineParent()
DCombine.kt105 val collectJob = Job() in zipImpl() constant
108 if (collectJob.isActive) collectJob.cancel(AbortFlowException(this@unsafeFlow)) in zipImpl()
126 withContextUndispatched(coroutineContext + collectJob, Unit) { in zipImpl()