These are chat archives for ReactiveX/RxJava

14th
Nov 2018
Arsala Bangash
@ArsalaBangash
Nov 14 2018 03:47

Hi! I need some help knowing which operators to use in the following scenario:

I have a button that submits a code to the backend and also a button that would cancel the submission of the code. I already have a method that makes an API call to the backend and returns an Observable<Result<String>>, let's call this submitCode()

I would like to do the following:

submitButtonClickStream -> trigger submitCode() -> cancel submission if cancel stream onNexts -> subscribe to submitCode result and implement success and failure handlers