<How do I wait for a void function to finish execu...
# stackoverflow
u
How do I wait for a void function to finish executing before triggering a completable in Android? I'm very new to RxJava/RxAndroid and I'm very confused with how to achieve this workflow: Trigger void function Once it completes, provide some sort of callback to start a Completable function. I tried wrapping my void function in an Observable that emits a , but honestly I've no clue if that's the right thing to do. fun observableFoo(): Observable { return Observable.create { emitter -> emitter.onNext( voidFunction() ) } .subscribeOn(Schedulers.io())...