I am new to Rxjava and exploring the possibilities and need help in below described scenario.
Step 1 : Swipe the View
Step 2 : Make an API Call to fetch Data
The above steps are repeated for the number of Views.
Problem :
- API_CALL_1 fetching the View_1 Results
- User swipes a View_2
- API_CALL_2 fetching the View_2 Results
- View_1 results are returned and populated in View_2 along with View_2 results
I need to cancel the API_CALL_1 request when the API_CALL_2 request. Thanks.