Code Monkey home page Code Monkey logo

Comments (5)

PrimaryFeather avatar PrimaryFeather commented on June 11, 2024

Thanks for the heads-up — I actually did not notice the deprecation because I'm always using iOS 5 as deployment target, and it doesn't show up in that case. ;-)

Bah, it's a bummer that they're taking that method away. The idea was that it would always return in the same thread queue as the one it was being called from. Which will very probably be the main queue, you're right — but if not, it's a problem. I'll have to investigate this! Didn't find a nice solution from the first few minutes of googling. ;-)

from flox-objc.

PrimaryFeather avatar PrimaryFeather commented on June 11, 2024

I decided to use dispatch_get_main_queue instead. I liked the old solution better, but let's just say that Apple will probably maybe have had a good reason to remove get_current_queue.

from flox-objc.

jamikado avatar jamikado commented on June 11, 2024

Ok cool, so typically this might have been main_queue anyway? i wasn't sure if there were any internal uses of queues besides the io queue that could cause any deadlock issue if the main_queue was used explicitly.

from flox-objc.

PrimaryFeather avatar PrimaryFeather commented on June 11, 2024

Yes, this should always have been "main_queue", except if users called some Flox commands from different queues, which is unlikely. So I guess the change shouldn't be a problem.

from flox-objc.

PrimaryFeather avatar PrimaryFeather commented on June 11, 2024

That said: if turns out to cause any problems, we could always add an option to specify the queue people want their callbacks to be executed.

from flox-objc.

Related Issues (2)

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.