3 ms·
> I did have to build some things that I felt should have come standard. For example, I had to build a class that provides a thread-safe way to enqueue objects
by astrange 3y ago
> I did have to build some things that I felt should have come standard. For example, I had to build a class that provides a thread-safe way to enqueue objects and process them in a background task, which used DispatchQueue internally.
That is DispatchQueue. Or NSOperationQueue. Or preferablly Swift concurrency.
Most wrappers around dispatch queues are unnecessary and use it incorrectly. (I would say this is true of operation queues themselves.) Swift concurrency is better than dispatch, though.
- saagarjha 3y ago> Swift concurrency is better than dispatch, though. For some things, sure.