mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-29 17:57:53 +08:00
Fix suspending context links
This commit is contained in:
parent
f548a2bc2c
commit
758ef80b65
@ -130,7 +130,7 @@ Stubs
|
|||||||
: A subset of a → _Program Structure Interface_ tree in a binary serialized compact format, see [](stub_indexes.md).
|
: A subset of a → _Program Structure Interface_ tree in a binary serialized compact format, see [](stub_indexes.md).
|
||||||
|
|
||||||
Suspending Context
|
Suspending Context
|
||||||
: Executing in the [suspending context](coroutine_execution_contexts.md#suspending-context) means executing tasks in Kotlin coroutines.
|
: Executing in the [suspending context](coroutine_execution_contexts.md#suspending-context-coroutines) means executing tasks in Kotlin coroutines.
|
||||||
→ _Blocking Context_
|
→ _Blocking Context_
|
||||||
→ _Coroutine_
|
→ _Coroutine_
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ Consider rewriting code to use it, if possible.
|
|||||||
|
|
||||||
Use them if a read action is required, but it is unacceptable to reschedule code execution on a different dispatcher.
|
Use them if a read action is required, but it is unacceptable to reschedule code execution on a different dispatcher.
|
||||||
|
|
||||||
These APIs are marked to use only in the [blocking context](coroutine_execution_contexts.md#blocking-context), so their usage in the [suspending context](coroutine_execution_contexts.md#suspending-context) will trigger a warning.
|
These APIs are marked to use only in the [blocking context](coroutine_execution_contexts.md#blocking-context), so their usage in the [suspending context](coroutine_execution_contexts.md#suspending-context-coroutines) will trigger a warning.
|
||||||
It is intentional, as coroutines should be prepared to be rescheduled and should use `readAction()`.
|
It is intentional, as coroutines should be prepared to be rescheduled and should use `readAction()`.
|
||||||
|
|
||||||
### Suspending `writeIntentReadAction()` and Blocking `WriteIntentReadAction.run()`/`compute()`
|
### Suspending `writeIntentReadAction()` and Blocking `WriteIntentReadAction.run()`/`compute()`
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<tldr>
|
<tldr>
|
||||||
|
|
||||||
**Implementation**: Progress tracking in [Progress API](background_processes.md#tracking-progress) and [Kotlin Coroutines](coroutine_execution_contexts.md#suspending-context-progress-reporting)
|
**Implementation**: Progress tracking in [Progress API](background_processes.md#tracking-progress) and [Kotlin Coroutines](coroutine_execution_contexts.md#progress-reporting)
|
||||||
|
|
||||||
</tldr>
|
</tldr>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user