Split kotlin function for immediate and suspend parts
## Summary A Kotlin suspend function mixing foreground and background work caused unexpected blocking behavior when called. The function contained an immediate task (set `a=2`) and a delayed background task (set `a=3`). When called synchronously (`bar()`’s `foo()` call), it blocked until **both tasks completed**, preventing immediate access to intermediate results (`a=2`). ## Root Cause – … Read more