It’s probably worth filing a bug about that. Please post your bug number, just for the record.
I created FB13454498.
First, I recommend against using Dispatch global concurrent queues, as explained in Avoid Dispatch Global Concurrent Queues.
Thank you. While the second WWDC link on the linked page correctly leads to a video, the first link (WWDC 2015 Session 718 Building Responsive and Efficient Apps with GCD) leads to a list of videos where that video cannot be found. Does it still exist?
Second, synchronously dispatching to the main queue is a concern because it can block the current thread for long periods of time.
I know, but that thread needs access to a resource possibly occupied by the main thread before being able to continue with its work.
I think you’d be much better off investing in Swift concurrency.
I'm still supporting macOS 10.13, while Swift concurrency is only available on macOS 10.15.
Topic:
Programming Languages
SubTopic:
Swift
Tags: