Giter VIP home page Giter VIP logo

Comments (4)

lxcid avatar lxcid commented on July 3, 2024

Interesting suggestion. As Ole Begemann mentioned in his post, NSProgress is thread-safe.

The only issue this might be a problem is when you (or some other libraries) use it to create tree of progress.
It actually make sense to recommendsNSProgress as cancellation token. It can then hook up to system behaviour.

I'll be trying your suggestion out. :)

from bolts-objc.

josephearl avatar josephearl commented on July 3, 2024

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.

from bolts-objc.

josephearl avatar josephearl commented on July 3, 2024

See #89

from bolts-objc.

tettoffensive avatar tettoffensive commented on July 3, 2024

@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.

from bolts-objc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.