Home
last modified time | relevance | path

Searched refs:tryEmit (Results 1 – 6 of 6) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/sharing/
DSharedFlowTest.kt113 assertFalse(sh.tryEmit(5)) // collector is not ready now in <lambda>()
132 assertFalse(sh.tryEmit(13)) // rendezvous does not work this way in <lambda>()
228 assertTrue(sh.tryEmit(3)) // buffered in <lambda>()
232 assertTrue(sh.tryEmit(5)) // buffered in <lambda>()
247 assertFalse(sh.tryEmit(10)) // still no buffer space in <lambda>()
267 assertTrue(sh.tryEmit(0)) in <lambda>()
291 assertTrue(sh.tryEmit(1)) // buffered in <lambda>()
293 assertTrue(sh.tryEmit(2)) // buffered in <lambda>()
295 assertTrue(sh.tryEmit(3)) // buffered (buffer size is 3) in <lambda>()
301 assertTrue(sh.tryEmit(4)) // can buffer now in <lambda>()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/
DSharedFlow.kt150 public fun tryEmit(value: T): Boolean in tryEmit() method
322 override fun tryEmit(value: T): Boolean { in tryEmit() method in kotlinx.coroutines.flow.SharedFlowImpl
337 if (tryEmit(value)) return // fast-path in emit()
DStateFlow.kt313 override fun tryEmit(value: T): Boolean { in tryEmit() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/
DShare.kt225 … shared.tryEmit(initialValue) // state flow -> reset to initial value in launchSharing()
/external/llvm-project/clang/lib/CodeGen/
DCGExprConstant.cpp1769 llvm::Constant *tryEmit();
1817 llvm::Constant *ConstantLValueEmitter::tryEmit() { in tryEmit() function in ConstantLValueEmitter
2041 return ConstantLValueEmitter(*this, Value, DestType).tryEmit(); in tryEmitPrivate()
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api1069 public abstract fun tryEmit (Ljava/lang/Object;)Z