coroutine
CommunityMaster Kotlin coroutines for robust async operations.
Authorgykk16
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides clear guidelines and utilities to ensure Kotlin coroutines are used safely, efficiently, and with proper context propagation, preventing common pitfalls like lost MDC data or unmanaged cancellations.
Core Features & Use Cases
- MDC Context Propagation: Ensures request tracing and logging context is maintained across coroutines.
- Dispatcher Selection: Guides the use of Default, Virtual Thread, and IO dispatchers for optimal performance.
- Retry Patterns: Offers built-in, configurable retry mechanisms for resilient operations.
- Structured Concurrency: Enforces best practices for lifecycle management and cancellation.
- Use Case: When making multiple asynchronous API calls that require consistent logging across all operations, this Skill ensures that the
traceIdandrequestIdare correctly propagated to all child coroutines, allowing for seamless debugging and monitoring.
Quick Start
Use the coroutine skill to fetch user data concurrently using virtual threads.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: coroutine Download link: https://github.com/gykk16/spring-skeleton/archive/main.zip#coroutine Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.