Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop all running requests #1282

Open
evdtempel opened this issue Dec 15, 2015 · 2 comments
Open

Stop all running requests #1282

evdtempel opened this issue Dec 15, 2015 · 2 comments

Comments

@evdtempel
Copy link

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.

@daviesgeek
Copy link
Collaborator

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

@serhiihordiichuk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants