Guys, I wrote a `fun` with an action callback para...
# getting-started
r
Guys, I wrote a
fun
with an action callback parameter in kotlin:
callback:()->Unit
, but when using it in java I have to declare
()->{return null;}
to satisfy the callback parameter, that is, in java it's a Function, not an Action. Is there a simple say to make it behave as a proper action and not have to provide a this fake return?