I needed to figure out a way to run multiple concurrent calls to fetch "account" information from a backend system.
(I have simplified the logic for this example, but object and method names are the same)
This sample project demonstrates how to use
dispatch_group_* methods to provide
run necessary code concurrently, while maintaing correct read values when all
of the tasks have finished.
There are many different ways to skin this concurrent cat:
- dispatch semaphores
If you have a better/different implemenation then please let me know. I would like to add it to the list.