mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
general_threading_rules.md: add information about disabling ProcessCanceledException for development purposes
This commit is contained in:
parent
5548b21ace
commit
ce6472c3b7
@ -69,6 +69,11 @@ The `checkCanceled()` should be called often enough to guarantee the process's s
|
||||
PSI internals have a lot of `checkCanceled()` calls inside.
|
||||
If a process does lengthy non-PSI activity, insert explicit `checkCanceled()` calls so that it happens frequently, e.g., on each _Nth_ loop iteration.
|
||||
|
||||
> Throwing `ProcessCanceledException` from `checkCanceled()` can be disabled for development (e.g. while debugging the code) with the <menupath>Tools | Internal Actions | Disable ProcessCanceledException</menupath> action.
|
||||
> The action is available only if [Internal Mode is enabled](https://plugins.jetbrains.com/docs/intellij/enabling-internal.html).
|
||||
>
|
||||
{type="tip"}
|
||||
|
||||
## Read Action Cancellability
|
||||
|
||||
Background threads shouldn't take plain read actions for a long time.
|
||||
|
Loading…
x
Reference in New Issue
Block a user