Endless Queue Management

One StateFlow holds a growing playback queue but has two write paths on purpose — a full setter that resets derived snapshots, and continuation appends that write the backing field directly so those snapshots survive. Use when a feature keyed on "where the queue came from" stops working once the queue auto-extends, or before refactoring two queue write paths into one.

maxrave-dev ef62b32 5.6 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/endless-queue-management commit ef62b32095

Frequently asked questions

npx skillmds@latest add maxrave-dev/endless-queue-management