https://kotlinlang.org logo
m

michaelsims

05/04/2016, 5:20 PM
I was curious about this myself so I set up a quick test of something similar and looked at the bytecode. What is happening with the lamda expression is that the Kotlin compiler is performing SAM conversion by basically synthesizing a wrapper class that implements Runnable and delegates to the lambda.