coroutines-stateflow-sharedflow
CommunityExpose hot state and events with Flow.
AuthorClankerGuru
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Manage and broadcast state and events in Kotlin applications using Flow primitives to ensure consistency across multiple observers.
Core Features & Use Cases
- State sharing: use MutableStateFlow and asStateFlow for a single source of truth across UI and services.
- Event broadcasting: use MutableSharedFlow for fan-out events with optional replay.
- State hotting: use stateIn for converting cold Flows to hot StateFlows; shareIn to share upstream across subscribers.
- Scenarios: ViewModels, services, or components that require synchronized state or broadcast events to multiple listeners.
Quick Start
Ask your AI to scaffold an example that exposes a counter as StateFlow and emits button-click events via SharedFlow.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: coroutines-stateflow-sharedflow Download link: https://github.com/ClankerGuru/opsx/archive/main.zip#coroutines-stateflow-sharedflow 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 471,000+ vetted skills library on demand.