-
Notifications
You must be signed in to change notification settings - Fork 576
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
BFTask cancellation #86
Comments
You need to set up a token of some kind, as described in the README:
This just means writing a separate class with an interface like:
You can create this and make sure your task callbacks keep a hold of it during the network process. You should check for the token's cancellation as appropriate and halt the task (by returning |
Thanks. I get BFTasks from Parse, and such ops as save cannot be cancelled apparently as Parse does not expose a method for that, and BFTask cannot be marked as cancelled either which is ... bummer. Even |
Closing as it's not going anywhere this way. #dealingwithit |
Just want to point out that with Parse the 'long' tasks that might need On 27 March 2015 at 15:21, Andrej Mihajlov [email protected] wrote:
|
@iotize thanks, I use combination of file uploads and save, but also another use case is if I attach PFFiles to model and call save on model, then it will automatically upload files first and then save the record on Parse. I wish they had cancellation for models too. |
I looked through issues and documentation and I have no idea how to cancel network task that I do not need anymore.
The text was updated successfully, but these errors were encountered: