Hi folks, how does kotlin dispose of unreferenced objects in a multiplatform context? for example, let's suppose a Foo() class is created within a composition. In the JVM world, it would be picked up by the GC afterwards. What would happen in the rest of the targets, like Linux, iOs & JS?
n
Nicklas Jensen
06/12/2023, 6:25 AM
Kotlin/Native also uses a Garbage Collector nowadays. You can read more about it here: Kotlin/Native memory management.
In short: The behaviour is largely the same for both Kotlin/Native and Kotlin/JVM.