I created a ReactiveSwift Action to remove the items in the cart.
var removeCartItemAction: Action<CartItem, (), Error>!
It passes the cartItem object to server and removes that item from the cart. Server usually takes 4-5 seconds to respond.
In the meantime if user removes another item, I’m calling the same action again with different cart item object. But this time action is not starting.
It looks like Action can be started again only if the previous one is completed. How to avoid this? I need to run the action in parallel without waiting for the previous to complete.
Thank you in advance.