The problem: How to make retrofit+rxjava request unique? For example user can click on button a lot of, and the are will be a lot of requests. So, my point here, how to send only one request, but other, same requests, drop automatically. (There are should only one same request running at time)
Solution with booleans working(checking before you execute the task, that this task are already running), but maybe someone can suggest better, more universal solution?
Thank a lot of.
Sounds like you could use
distinct()
ordistinct(Func1)
. For example, given an input box and a button, you want to take the input box value and do some network calls if the user clicks on the button: