使用 Kotlin Coroutines 和 Flow 实现 Android 与 Kotlin Multiplatform 的异步任务和数据更新,涵盖并行加载、界面状态、取消、错误处理及测试。
- 并行加载多种数据
- 使用 StateFlow 管理界面状态
- 对搜索输入防抖并重试网络请求
32 个 · 按相关度排序
使用 Kotlin Coroutines 和 Flow 实现 Android 与 Kotlin Multiplatform 的异步任务和数据更新,涵盖并行加载、界面状态、取消、错误处理及测试。
Implement Kotlin applications with asynchronous tasks, shared code across platforms, Android interfaces, and servers. The skill covers state modeling, cancellation handling, tests, and code checks, with guidance for Compose, Ktor, and Flow data streams.
中文简介正在准备中。当前显示英语简介。
Write, review, and refactor Kotlin code using established conventions. Covers safe handling of missing values, immutable data, coroutines for asynchronous work, and type-safe configuration builders, helping keep application code readable and maintainable.
中文简介正在准备中。当前显示英语简介。
Guide and execute the migration of asynchronous code from RxJava to Kotlin Coroutines and Flow. Use this skill when a user asks to convert RxJava (Observables, Singles, Completables, Subjects) to Coroutines (suspend functions, Flows, StateFlows).
中文简介正在准备中。当前显示原文说明。
为Kotlin代码先编写测试,使用Kotest和MockK验证行为与依赖交互,涵盖异步测试、生成输入的属性测试及Kover覆盖率检查。
Write Unity 6.3 LTS C# gameplay scripts: the MonoBehaviour lifecycle (Awake/OnEnable/Start/Update/FixedUpdate/LateUpdate), GameObject and component access, coroutines, and Inspector serialization. Use when creating or editing .cs scripts in a Unity project, or when the user mentions MonoBehaviour, Start/Update, GetComponent, SerializeField, coroutines, or "Unity script".
中文简介正在准备中。当前显示原文说明。
Authoritative rules and patterns for production-quality Kotlin Coroutines onto Android. Covers structured concurrency, lifecycle integration, and reactive streams.
中文简介正在准备中。当前显示原文说明。
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.
中文简介正在准备中。当前显示原文说明。
Integrate ViewModel state with XML Views using Coroutines and Lifecycle on Android. Use when managing state with repeatOnLifecycle or lifecycle-aware coroutines in Fragment/Activity; defer Compose state and generic Flow design to their specific skills.
中文简介正在准备中。当前显示原文说明。
Kotlin Coroutines and Flow patterns for Android and KMP — structured concurrency, Flow operators, StateFlow, error handling, and testing.
中文简介正在准备中。当前显示原文说明。
Use when working with C++20 co_await, co_yield, and co_return, implementing promise_type, sizing coroutine frames, or debugging suspended coroutines in GDB. Not for Rust async: use idiomatic-rust.
中文简介正在准备中。当前显示原文说明。
Kotlin Coroutines and Flow patterns for Android and KMP — structured concurrency, Flow operators, StateFlow, error handling, and testing.
中文简介正在准备中。当前显示原文说明。
Write and review asynchronous C++ networking code using Boost.Asio or standalone Asio. The skill selects an implementation style for the installed library and C++ version, then checks memory lifetimes, concurrent writes, error handling, and build settings.
中文简介正在准备中。当前显示英语简介。
Write and refactor C++20/23 applications, addressing memory management, concurrency, and performance bottlenecks. Produce interfaces, implementations, tests, and relevant CMake updates, then check runtime errors and measure performance before applying targeted optimizations.
中文简介正在准备中。当前显示英语简介。
Kotlin Coroutines review and remediation for Android. Use when asked to review concurrency usage, fix coroutine-related bugs, improve thread safety, or resolve lifecycle issues in Kotlin/Android code.
中文简介正在准备中。当前显示原文说明。
Expert guidance on setting up and using Retrofit for type-safe HTTP networking in Android. Covers service definitions, coroutines, OkHttp configuration, and Hilt integration.
中文简介正在准备中。当前显示原文说明。
Use when writing GDScript — static typing, await/coroutines, lambdas, match patterns, export annotations, inner classes, and common idioms
中文简介正在准备中。当前显示原文说明。
Core Kotlin patterns for scope functions, backing properties, and read-only collection interfaces. Use for let/apply/run/also/with choices or encapsulating mutable state; defer general language constructs, extension functions, coroutines/runCatching, Android/Room recipes, and testing/tooling setup.
中文简介正在准备中。当前显示原文说明。
Async Python patterns via asyncio and aiohttp for I/O-bound concurrency. Use when adding async APIs, handling concurrent I/O, or debugging async code.
中文简介正在准备中。当前显示原文说明。
Use when writing, changing or reviewing code that touches the house contract for Jetpack Compose and Compose Multiplatform apps: module graph, MVI/BaseViewModel, error tiers, state ownership, naming, Koin DI, Navigation 3 and coroutines. The compose skill is the entry point. Do NOT use for Gradle-only work (compose-project), new screens (compose-feature), composable-only work (compose-ui), repositories or persistence (compose-data), or expect/actual splits (compose-platform).
中文简介正在准备中。当前显示原文说明。
Kotlin coding standards including null safety, Either error handling, coroutines, and Exposed ORM patterns. Use when writing Kotlin code, reviewing code quality, or learning project patterns.
中文简介正在准备中。当前显示原文说明。
Use when writing asyncio Python code — async/await coroutines, concurrent I/O with asyncio.gather, task creation and cancellation, semaphore rate limiting, producer-consumer queues, async context managers, async generators, WebSocket servers, aiohttp web scraping, async database operations, run_in_executor for blocking calls, or testing async code with pytest-asyncio. Covers FastAPI and aiohttp patterns, synchronization primitives, timeout handling, and common pitfalls like event loop blocking and missing await.
中文简介正在准备中。当前显示原文说明。
Idiomatic Kotlin patterns, best practices, and conventions for building robust, efficient, and maintainable Kotlin applications with coroutines, null safety, and DSL builders.
中文简介正在准备中。当前显示原文说明。
Comprehensive Android development expert covering Jetpack Compose, Kotlin coroutines/Flow, Architecture Components, Hilt DI, Navigation, testing, performance, Material Design 3, and modern Android patterns (MVI, Clean Architecture).
中文简介正在准备中。当前显示原文说明。