These are chat archives for ReactiveX/RxJava

25th
Feb 2016
Derek Perez
@perezd
Feb 25 2016 04:45
Is there a way to use lambdas with subscribe but retain the expected argument type?
I keep getting handed Object and have to cast
Derek Perez
@perezd
Feb 25 2016 05:05
I think the problem is that JDK8 cannot figure out what the functional interface is.
Dorus
@Dorus
Feb 25 2016 09:01
Like (String str) -> println(str)?
You might also have lost the type in a previous operator, might need to hint the compiler there.
Typing can be hard in Java, it's rather limited sometimes.