<Kotlin SAM interfaces> Hi. I ran into a problem r...
# forum
r
Kotlin SAM interfaces Hi. I ran into a problem recently while upgrading dependent libraries where a new function was added that overloaded one I was using. The compiler started throwing a compile time error. Given this function fun executeWithNull(action: (ofy: SomeObject) -> T): T? { val callable = Callable { return@Callable SomeObjectService.run { val value = SomeObjectService.value() action(value) } } return this.timer.time(callable) } Where the...