Thomas
01/14/2020, 11:56 AMCoroutineScope
moved to a separate class?
See the following: https://github.com/touchlab/DroidconKotlin/blob/kpg/mt_coroutines/sessionize/lib/src/commonMain/kotlin/co/touchlab/sessionize/BaseModel.kt
If you check the master branch than you can see that BaseModel
just implements CoroutineScope
. In the kpg/mt_coroutines
branch that implementation was moved to a separate class, called MainScope
. Is there a reason behind this change to support mt coroutines? Is it possible that MainScope
can become frozen for some reason?kpgalligan
01/14/2020, 12:24 PMkpgalligan
01/14/2020, 12:25 PMkpgalligan
01/14/2020, 12:26 PMThomas
01/14/2020, 12:28 PMThomas
01/14/2020, 12:28 PMkpgalligan
01/14/2020, 12:45 PMThomas
01/14/2020, 12:46 PMkpgalligan
01/14/2020, 12:48 PMThomas
01/14/2020, 2:38 PMkpgalligan
01/14/2020, 2:38 PMkpgalligan
01/14/2020, 2:39 PMThomas
01/14/2020, 2:39 PMThomas
01/14/2020, 2:40 PMHaving issues with freezing state that you didn’t want to freeze?Yes exactly. My view model is getting frozen (which is not supposed to happen). So I added ensureNeverFrozen() to the view model, but the stack trace doesn’t really help me a lot.
kpgalligan
01/14/2020, 2:41 PMThomas
01/14/2020, 2:42 PMkpgalligan
01/14/2020, 2:42 PMThomas
01/14/2020, 2:43 PMkpgalligan
01/14/2020, 2:43 PMkpgalligan
01/14/2020, 2:44 PMkpgalligan
01/14/2020, 2:44 PMThomas
01/14/2020, 2:45 PMkpgalligan
01/14/2020, 2:46 PMThomas
01/14/2020, 3:27 PMkpgalligan
01/14/2020, 3:27 PMkpgalligan
01/14/2020, 3:27 PMThomas
01/14/2020, 3:27 PMThomas
01/14/2020, 3:28 PMkpgalligan
01/14/2020, 3:28 PMkpgalligan
01/14/2020, 3:28 PMThomas
01/14/2020, 3:29 PMThomas
01/14/2020, 4:01 PMThomas
01/14/2020, 4:02 PMThomas
01/14/2020, 4:03 PMThomas
01/14/2020, 4:04 PMkpgalligan
01/14/2020, 4:10 PMThomas
01/14/2020, 4:10 PMkpgalligan
01/14/2020, 4:12 PMkpgalligan
01/14/2020, 4:12 PMThomas
01/14/2020, 4:13 PMkpgalligan
01/14/2020, 4:13 PMThomas
01/14/2020, 4:16 PMcombine(flowOf(sd), flowOf(sd)) { a, b -> a to b }
with:
flowOf(sd)
then all works finekpgalligan
01/14/2020, 4:23 PMThomas
01/14/2020, 4:23 PMThomas
01/14/2020, 4:24 PM