Implements structured concurrency and asynchronous programming patterns in Kotlin using coroutines, Flow, and channels.
The Kotlin Coroutines skill equips Claude with specialized expertise in managing asynchronous tasks and non-blocking operations within the Kotlin ecosystem. It provides implementation patterns for fundamental concepts like suspend functions and coroutine builders, while also addressing complex reactive stream management using Flow and inter-coroutine communication via Channels. By emphasizing structured concurrency, this skill ensures that Claude generates code that is resource-efficient, handles exceptions gracefully across scopes, and utilizes the correct Dispatchers for both Android and server-side performance optimization.
主要功能
0139 GitHub stars
02Optimized thread management using IO, Main, and Default Dispatchers
03Reactive stream processing with cold Flow and hot StateFlow/SharedFlow
04Advanced communication primitives including buffered and unbuffered Channels
05Structured concurrency management using CoroutineScope and SupervisorJob
06Cancellable suspend functions and callback-to-coroutine conversion
使用场景
01Refactoring legacy callback-based networking code into clean, sequential suspend functions
02Developing high-throughput backend services that handle millions of concurrent requests without blocking
03Building reactive Android UI architectures using StateFlow and lifecycle-aware scopes