From d648ae791cff7c15365e8ac4d84d438c8c8fac39 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Thu, 20 Feb 2025 15:26:05 +0100 Subject: [PATCH] glossary.md: Add Coroutine Execution context --- topics/appendix/glossary.md | 9 +++++++-- .../threading/execution_contexts.topic | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/topics/appendix/glossary.md b/topics/appendix/glossary.md index 80098fdf0..5f3003fd4 100644 --- a/topics/appendix/glossary.md +++ b/topics/appendix/glossary.md @@ -19,8 +19,9 @@ Annotator ## B Blocking Context -: Executing in the [blocking context](execution_contexts.topic#blocking-context) means executing tasks on a thread without access to a coroutine context. +: Executing in the [Blocking Context](execution_contexts.topic#blocking-context) means executing tasks on a thread without access to a coroutine context. → _Suspending Context_ +→ _Coroutine Execution Context_ → _Coroutine_ ## C @@ -38,6 +39,9 @@ Determines a thread or a thread pool the corresponding coroutine is executed on. See [](coroutine_dispatchers.md) for more details. → _Coroutine_ +Coroutine Execution Context +: Executing in the [Coroutine Execution Context](execution_contexts.topic#blocking-context) means executing code (suspending or non-suspending/blocking) from a coroutine. + Coroutine Scope : [Coroutine scopes](coroutine_scopes.md) define the lifetime of coroutines and ensure proper handling of coroutine cancellations and structured concurrency. → _Coroutine_ @@ -130,8 +134,9 @@ Stubs : A subset of a → _Program Structure Interface_ tree in a binary serialized compact format, see [](stub_indexes.md). Suspending Context -: Executing in the [suspending context](execution_contexts.topic#suspending-context-coroutines) means executing tasks in Kotlin coroutines. +: Executing in the [Suspending Context](execution_contexts.topic#suspending-context-coroutines) means executing tasks in Kotlin coroutines. → _Blocking Context_ +→ _Coroutine Execution Context_ → _Coroutine_ Symbol diff --git a/topics/basics/architectural_overview/threading/execution_contexts.topic b/topics/basics/architectural_overview/threading/execution_contexts.topic index 054cd09f5..e56066e72 100644 --- a/topics/basics/architectural_overview/threading/execution_contexts.topic +++ b/topics/basics/architectural_overview/threading/execution_contexts.topic @@ -406,6 +406,5 @@ -