Achmad Setyabudi Susilo 0bf47d5c94 fix(#21): move DB I/O to Dispatchers.IO in AddEdit screen models
Wrap getExpenses.awaitOne, upsertExpense.await, getRecurringExpenses.awaitOne
and upsertRecurringExpense.await in withContext(Dispatchers.IO) { ... } so
the suspending Room calls run off the main thread. State-flow updates stay
inside screenModelScope.launch, which is Main-bound, and execute after the
withContext block returns.
2026-06-28 20:28:46 +07:00
2026-06-28 13:21:57 +07:00
2026-06-28 13:21:57 +07:00
2026-06-28 13:21:57 +07:00
2026-06-28 13:21:57 +07:00
2026-06-28 13:21:57 +07:00
2026-06-28 13:21:57 +07:00
S
Description
No description provided
554 KiB
Languages
Kotlin 100%