abuicke / SolitaryFitness

Companion app to Solitary Fitness by Charles Bronson
1 stars 0 forks source link

Coroutine Scopes #32

Open abuicke opened 9 months ago

abuicke commented 9 months ago

Need to specify launch(Dispatchers.IO) for all coroutine operations (lifecycleScope and viewModelScope) that involve accessing disk or network (so any time I access a repository).

Inspect everywhere [launch] is called. I'm still not using [Dispatchers.IO] everywhere I should, e.g. in [LogWorkoutViewModel.incrementWorkout] or anytime [LogWorkoutViewModel.loadWorkoutLog] is called