-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Promise abort enhancement #107
Comments
You can have a loop to iterate your |
Yes thats true, actually that is what I am doing at the moment. But still that has its own limitations - maybe I want to abort only some of the requests or only one particular request. That could be also solved, yes - for example by having a Still not as convenient as simply calling |
ohh it would be awesome, any pull request is welcome! 💯 |
If #226 gets merged, ProtoPromise comes with |
Iv been using the library for last few weeks and it has worked for me very well, however there is one thing that I find abit inconvenient - aborting requests.
I set up a repository class for my rest api:
}
Basically I expose
IPromises
for other game objects that want to communicate with the api, now my problem is aborting individualIPromises
.Ideally Id like to just call a method
Abort
on givenIPromise
to cancel given api call. I am used to abort things like this from rxjava - disposing an observable whenever I feel like.Maybe I am missing something but right now Id have to expose given
RequestHelpers
to achieve what I want, which doesnt seem to be so clean. What do you think about it?The text was updated successfully, but these errors were encountered: