媒体The IntelliJ IDEA Blog2026/03/19 18:004820
• 推荐使用 awaitAll 替代 map { it.await() }
• currentCoroutineContext() 解决上下文冲突
IntelliJ IDEA 新增 Kotlin 协程检查功能,涵盖 `awaitAll()`、`currentCoroutineContext()`、`runBlocking` 误用、`Deferred` 未使用等场景。旨在提升代码质量与并发结构的正确性,是开发者优化协程实践的重要工具。