In Kotlin the object: Runnable() is not necessary?
l
Luke
08/02/2018, 2:28 PM
It's not that it's not necessary. In some cases, like this one, Kotlin is smart enough to convert a lambda to a Runnable since there is only one method to implement
r
rkeazor
08/02/2018, 2:28 PM
if its not a SAM than it requires that format
rkeazor
08/02/2018, 2:29 PM
there is a getting-started slack channel ,where you can get more info
p
Paul Woitaschek
08/02/2018, 9:09 PM
Therer is a ktx extension that reorders the argument
Paul Woitaschek
08/02/2018, 9:10 PM
so you can move the lambda outside the parenthesis