ilyagulya
07/14/2017, 4:29 PM(Int) -> Unit
and provide them from Java to Kotlin.
However, in Java i need to provide Function1<Int, Unit>
instead of Consumer<Int>
or something like this.
Due to this limitation i need to return Unit.INSTANCE
or use custom interfaces instead of closures
How can i avoid this problem?rednifre
07/14/2017, 4:36 PMilyagulya
07/14/2017, 4:42 PM(Int) -> Unit
but Consumer<Int>
?rednifre
07/14/2017, 4:46 PMilyagulya
07/14/2017, 5:19 PMilyagulya
07/14/2017, 5:20 PM