diff --git a/topics/basics/architectural_overview/threading/execution_contexts.topic b/topics/basics/architectural_overview/threading/execution_contexts.topic index ab481c8ca..054cd09f5 100644 --- a/topics/basics/architectural_overview/threading/execution_contexts.topic +++ b/topics/basics/architectural_overview/threading/execution_contexts.topic @@ -5,7 +5,7 @@ xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd" id="execution_contexts" title="Execution Contexts"> -
The IntelliJ Platform provides APIs that allow tracking the progress of background processes and canceling their @@ -25,14 +25,19 @@
Currently, the Progress Indicator context is the most widely used approach in the IntelliJ Platform. - As the platform's execution model moves towards coroutines, this approach - can be considered obsolete.
+Currently, the Progress Indicator context is the most widely used approach in the IntelliJ Platform. + As the platform's execution model moves towards coroutines, this approach + can be considered obsolete.
+Starting with 2024.2, it is recommended to execute new code in the .
-The following sections explain the contexts and provide information about process cancellation, progress - tracking, and switching between contexts.
+The following sections explain the contexts and provide information about process cancellation, progress + tracking, and switching between contexts.
+Starting with 2024.1, it is recommended to execute new code in the Suspending Context.
-Code executed via the Progress API @@ -145,6 +145,7 @@ performant solution.
The following table presents APIs to use for checking whether a task was canceled in different execution @@ -169,17 +170,19 @@ -
Coroutine Execution Context | -
-
ProgressStep
- - a step-based progress reporting (see its KDoc for details)
- RawProgressReporter
- - a raw text, details, and fraction reporting (invoked via reportRawProgress() )
-
- Any
+ |
-
ProgressStep
+ - a step-based progress reporting (see its KDoc for details)
+ RawProgressReporter
+ - a raw text, details, and fraction reporting (invoked via reportRawProgress() )
+
+ Any |
Progress Indicator | -
- ProgressIndicator 's
- or ProgressManager 's
- methods
- See Background Processes: Tracking - Progress for details. - |
+
+
+
|
Progress Indicator | +
+ ProgressIndicator 's
+ or ProgressManager 's
+ methods
+ See Background Processes: Tracking + Progress for details. + |
+
Suspending Context | -
Blocking Context | @@ -286,9 +289,7 @@ unavailable