报告 suspend 函数内部的 runBlocking 调用。

Using runBlocking within a suspend function blocks the calling thread and defeats the purpose of asynchronous programming.

The quick-fix replaces the runBlocking call with one of the following alternatives, depending on the context:

示例:


suspend fun something() {
  runBlocking {
    code() // 线程在此处被阻塞
  }
}

在应用快速修复后:


suspend fun something() {
  code() // 异步运行
}

2025.1 的新功能