restangular icon indicating copy to clipboard operation
restangular copied to clipboard

Stop all running requests

Open evdtempel opened this issue 10 years ago • 2 comments

Hey there,

I would love a method to stop all running requests executed by Restangular. The global $window.stop() functionality is too extensive, because it also stops requests for HTML-templates and the like.

Is there functionality available to do this or is such functionality up for consideration? If it is up for consideration I could have a go to make a PR for it.

evdtempel avatar Dec 15 '15 11:12 evdtempel

It definitely could be up for consideration. I'm not really sure how hard it would be to implement, but I'd be open to reviewing a PR with changes.

You can cancel a single request (see my comment, but I could see a use case for stopping all requests

daviesgeek avatar Jun 17 '16 05:06 daviesgeek

@daviesgeek for example 401 error, if you already got it and you need stop all other requests to the server

serhiihordiichuk avatar Mar 26 '18 14:03 serhiihordiichuk