oldergod / android-architecture

MVI architecture Implementation of the ToDo app.
Apache License 2.0
669 stars 70 forks source link

How to cancel a running API request in actionProcessor based on an intent? #36

Closed jaypandya closed 6 years ago

jaypandya commented 6 years ago

I have multiple requests being called from a single fragment. I want to cancel one of those requests based on some intent. How do I get a handle to cancel any one of the requests?

oldergod commented 6 years ago

Why not use an operator that would cancel in flights request when a new event is emitted like switchMap ?