Searched refs:ContextScope (Results 1 – 7 of 7) sorted by relevance
39 val flow = weakEmitter.shareIn(ContextScope(executor), SharingStarted.Eagerly, 0) in testShareInReference()46 val flow = weakEmitter.stateIn(ContextScope(executor), SharingStarted.Eagerly, null) in testStateInReference()53 val flow = weakEmitter.stateIn(ContextScope(executor)) in <lambda>()
96 ContextScope(coroutineContext + context) in plus()118 public fun MainScope(): CoroutineScope = ContextScope(SupervisorJob() + Dispatchers.Main) in plus()277 ContextScope(if (context[Job] != null) context else context + Job()) in CoroutineScope()
36 internal class ContextScope(context: CoroutineContext) : CoroutineScope { class
279 (ContextScope(c1) + c2).coroutineContext in scopePlusContext()
1582 template <typename L> class ContextScope : public ContextScopeBase1587 explicit ContextScope(const L &lambda) : lambda_(lambda) {}1589 ContextScope(ContextScope &&other) : lambda_(other.lambda_) {}1593 ~ContextScope() override { destroy(); }1627 ContextScope<L> MakeContextScope(const L &lambda) {1628 return ContextScope<L>(lambda);
34 ContextScope context(this, __FILE__ ":" TOSTRING(__LINE__))
166 class ContextScope {168 explicit ContextScope(MacroAssembler* const masm, const char* loc) in ContextScope() function173 ~ContextScope() { masm_->GetContext()->Down(); } in ~ContextScope()