mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
15 lines
679 B
HTML
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>
|