Inline Control Flow: Powerful, Dangerous, and Hungry for Locks A subtle Kotlin inline quirk let an early return bypass Redis lock cleanup, leaving keys stuck in memory. This is the story of how one misplaced return hijacked an entire cleanup flow and the simple fix that made it bulletproof. Shashank Kumar 19 Aug 2025