I cant recall the article, but I recently read about how lambdas are grouped in classes in compose (and thats one of the reasons why release builds are so much faster than debug). Does the same thing happen if the lambda is wrapped inside a value class? Example in thread 🧵
Zoltan Demant
06/23/2022, 1:39 PM
Copy code
@JvmInline
value class Sink<in T>(private val callback: (T) -> Unit) {
infix fun emit(value: T) {
callback(value)
}
}