mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
execution_contexts.topic: Mention in Coroutines Execution Context that blockingContext
is a no-operation function since 2024.2
This commit is contained in:
parent
e39e0bb0ce
commit
682875cda7
@ -53,7 +53,9 @@
|
||||
While code executed in the Coroutine Execution Context should use suspending functions,
|
||||
sometimes it is required to call non-suspending/blocking APIs that use methods such as
|
||||
<code>ProgressManager.checkCanceled()</code> or <code>ModalityState.defaultModalityState()</code>.
|
||||
Since 2024.2, these methods work as expected without the need to switch to the Blocking Context.
|
||||
Since 2024.2, these methods work as expected without the need to switch to the Blocking Context
|
||||
explicitly with <a href="%gh-ic%/platform/core-api/src/com/intellij/openapi/progress/coroutines.kt">
|
||||
<code>blockingContext()</code></a> (in 2024.2+, it is effectively a no-operation function).
|
||||
</p>
|
||||
|
||||
<tip>
|
||||
|
Loading…
x
Reference in New Issue
Block a user