cancel() in CancelBag
opened this issue · comments
Deleted user commented
I noticed there's a method of cancel
in CancelBag. When to use this method? (I can not find a case in your project)
Alexey Naumov commented
Hey @golangnext , there is a button on the Country Details screen that allows you to cancel loading the data. That button actually triggers cancel
on the CancelBag that keeps the running request alive.
Deleted user commented
oh, yes, we don't need to explicity call cancel method. An AnyCancellable instance automatically calls cancel() when deinitialized.