ahh interesting, I really appreciate it, Thilo. F...
# rx
a
ahh interesting, I really appreciate it, Thilo. From what I could find, it seems that whatever is defined in the just() method is executed even before it's subscribed to, so I guess it never has a chance to run on a separate thread. I didn't realize you could pass in a return type like that (Unit), but that makes sense. Since connect() returns a 'Unit' return type, it doesn't seem I can use
it
here, but that's no problem at all. just changed it to conn.serverCertificates, and all is well. I am getting a syntax error with regard to the , { error -> .... } portion since it can't infer the type of
error
at least. I'll do some digging and see what comes up. I did see in RxKotlin you could use syntax like: onComplete, onError, etc via
subscribeBy
. that almost seems similar to this