BigHugger
sk Skill · maxrave-dev

combine-two-flags-to-gate

Turn several independent condition flows into one on/off gate with combine + distinctUntilChanged + collectLatest, make both the start and the teardown branch idempotent, and run teardown uncancellably. Use when a subsystem starts before it is fully configured, keeps running after one of its preconditions is withdrawn, or ends up half-started after a fast toggle.

installs 8w
0
30-day movement
starts with the next reading
Related entries
1
Connections
0
kotlin
Host repository
maxrave-dev/kotlin-footguns
Host stars
578