I would do it somewhatr like this: ``` Observable...
# rx
t
I would do it somewhatr like this:
Copy code
Observable.just(Unit)
    .subscribeOn(<http://Schedulers.io|Schedulers.io>())
    .map { conn.connect() }
    .observeOn(Schedulers.mainThread())
    .subscribe { 
        showCertDetails(it)
    }, { error ->
       showError(error)
    }
😀 1