Files
Yann Cébron 7bbd97677c [devkit] cleanup inspection descriptions
GitOrigin-RevId: d9bfdce9a581af49b9f743874a21d001dcc74403
2024-05-14 15:24:08 +00:00

15 lines
679 B
HTML

<html>
<body>
Reports inappropriate usages of methods in Kotlin coroutines, which uses threading context (annotated with <code>@RequiresBlockingContext</code>).
Many of these methods have corresponding coroutine-friendly analogues, that can be used in <code>suspend</code> contexts.
<!-- tooltip end -->
Examples:
<ul>
<li><code>com.intellij.openapi.progress.ProgressManager.checkCanceled()</code> should be replaced with <code>com.intellij.openapi.progress.checkCancelled()</code></li>
<li><code>com.intellij.openapi.application.Application.invokeAndWait()</code> should be replaced with <code>withContext(Dispatchers.EDT)</code></li>
<li>etc.</li>
</ul>
</body>
</html>