fun myFunc(handler: Result<String> -> Uni...
# announcements
a
fun myFunc(handler: Result<String> -> Unit) ....
n
thread please
a
Sorry...keep forgetting (slack noob)
n
np, ask away
a
In Java, if I call the function like so...
myFunc(it -> {}
I don't have access to it.isSuccess/it.Failure
But in the Java code, IntelliJ recognizes "it" as Result<String>
n
well...it's an inline class. I wouldn't expect that to work well in Java.
a
So is there no way to use Result in Java, then?
(I look at Java with disdain, now)
n
but...that's for user-defined inline classes
a
Hmm
Thanks anyway....:-)