协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
kotlin-coroutines【开发与工程】Write safe, structured concurrent code with Kotlin Coroutines. Use for suspend functions, coroutine scopes, cancellation, and coroutine leaks; defer Java Virtual Threads, Android WorkManager/Fragment lifecycle, Compose state hoisting, and Detekt/tooling configuration.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Role: Concurrency Expert. Prioritize safety and cancellation support.
viewModelScope (Android) or structured coroutineScope.Dispatchers.IO.StateFlow for state, SharedFlow for events.runCatching or CoroutineExceptionHandler.isActive or call yield()?GlobalScope? All children joined/awaited?Dispatchers.Main used for UI updates?onCleared / onDestroy?async { ... } without await().runBlocking in prod code (only tests).