spierce7
06/19/2018, 4:16 PMgildor
06/19/2018, 4:18 PMspierce7
06/19/2018, 4:22 PMrunBlocking
not being part of the common library, that's not really an API change though.
I'm wondering if kotlin/native might require more drastic change as a lambda could potentially capture all parent state:
var parentState = 42
val intendedSharedState = 42
launch {
// I have unsafe access to parentState here
}
gildor
06/19/2018, 4:23 PMgildor
06/19/2018, 4:24 PMsvyatoslav.scherbina
06/19/2018, 4:39 PMlaunch {}
can capture only shared state (e.g. frozen objects).
In the example above lambda captures mutable state and thus this code will throw an exception.spierce7
06/23/2018, 7:31 PMsvyatoslav.scherbina
06/25/2018, 9:55 AM