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:
run の呼び出し。withContext call when a specific CoroutineContext is used.runBlocking wrapper.例:
suspend fun something() {
runBlocking {
code() // スレッドはここでブロックされます
}
}
クイックフィックス適用後:
suspend fun something() {
code() // 非同期的に実行します
}
2025.1 の新機能です