quiro
05/10/2017, 12:36 PMFunction0<Unit>? If you don't need a return type, you may define an interface Action which extends Function<Unit>. Something like:
interface Action : Function<Unit> {
fun invoke()
}
And you'll be able to use void freely in Java