Grand Central Dispatch (GCD) is a great technology provided by Apple. It provides an elegant level of abstraction to work with threads, queues, and locks. GDC helps you to develop smooth and user friendly application.
I have created a queue enum using protocols to deal with GDC.
[gist id=”1cb21d12baadb49353f4036208860a7c”]
Usage is simple and improves code readability.
Here are some examples of using queue enum.
[gist id=”7a5210eda1798f62a5353761c7455c77″]
thank you for reading
Leave a Reply