One Snapshot Per Period Not Many Flows

Return a whole period's figures as one immutable snapshot from a single suspend call, rather than as a dozen independent flows the screen has to line up — a screen comparing two spans needs each span coherent, and separate emissions let a count from this period render beside a total from the last. Covers when a single-emission flow is a suspend function in costume, which derived figures belong on the snapshot, and why a rate needs the denominator a human means. Use when a comparison screen briefly shows mismatched numbers while reloading, when adding the tenth flow to one screen's repository, or when two places compute the same average differently.

maxrave-dev Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/one-snapshot-per-period-not-many-flows commit 9112c41b11

Frequently asked questions

npx skillmds@latest add maxrave-dev/one-snapshot-per-period-not-many-flows