-
Notifications
You must be signed in to change notification settings - Fork 579
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
Using NSProgress as a Cancellation Token #34
Comments
Interesting suggestion. As Ole Begemann mentioned in his post,
I'll be trying your suggestion out. :) |
I think my preference would be to write classes similar to CancellationToken and IProgress for cross-platform consistency - though it would certainly be a good idea to allow creating a CancellationTokenSource or IProgress from an NSProgress. |
See #89 |
@josephearl is there an example somewhere of how I can use NSProgress with BFTasks? I have some videos that are going through an encoding process and uploading process and want to show the user a progress bar with the ability to cancel as well. But I'm a bit lost as to where to start. Right now I have a "progress" block that sits outside the bftask infrastructure. |
After reading about the interesting idea of cancellation tokens in the readme,
I thought about using NSProgress instead of implementing it on my own.
Are there any known problems or issues with this approach?
The text was updated successfully, but these errors were encountered: