Harnick
03/11/2023, 12:47 PMFinalize
wasn't the greatest solution when it came to Java's GC, but with KMM supporting more than just Android, is there a better way to destroy a coroutine scope along with its viewmodel?Casey Brooks
03/11/2023, 3:16 PMvm.close()
function, but found it very hard to sync that with the coroutineScope properly. But once I switched it around so that the scope controls the VM, then you only have 1 lifetime to worry about, the VM cleans itself up, and the whole thing becomes more predicable and easier to manage.Casey Brooks
03/11/2023, 3:16 PMHarnick
03/11/2023, 3:35 PMCasey Brooks
03/11/2023, 5:19 PMHarnick
03/11/2023, 5:33 PMHarnick
03/11/2023, 6:33 PMstart()
called? I'm assuming in AppScreen()
?Casey Brooks
03/11/2023, 6:53 PM