The story’s score and claims

Comments on No. 54 of 59 · kt.academy · edition of Sunday 1 November 2026

Kotlin Flow: Bugs That Look Correct at First

Summary

The article walks through four common Kotlin Flow bugs that look correct at first glance: cold flows re-running upstream work per collector (fixed with shareIn), catch only handling upstream exceptions (not downstream ones), conflate() silently dropping intermediate values, and stateIn() with SharingStarted.WhileSubscribed never starting upstream without a subscriber, which matters…

Comments

Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules