Ayla
05/22/2023, 6:34 AMJakub Syty
05/22/2023, 6:41 AM@Stable
data class StableHolder<T>(val value: T)
fun <T : Any> T.wrapAsStable(): StableHolder<T> {
return StableHolder(this)
}
Ayla
05/22/2023, 7:57 AMJakub Syty
05/22/2023, 8:44 AMStylianos Gakis
05/23/2023, 7:42 AMkotlinx.collections.immutable.ImmutableList
and so on.
But either way, I don’t see that happening very soon.