Login required for access
In order to watch this lesson, you'll need to login to the website.
Synchronizing Multiple Fetches using Dispatch Group
AppStore JSON APIs
In order to view this lesson, you must purchase this course.
To resolve the issue of unnecessary data fetches, we'll perform an initial load of all necessary data upfront in our first controller file. One problem you'll notice right away is that its quite difficult to figure out when the last piece of data was fetched. Fixing this is quite easy by using the <b>DispatchGroup</b> class. For each request we fire off, we'll make an enter() call, and upon completion we'll perform a leave(). Once all information is retrieved, we'll be notified and thats when we can reload our UI. This is a really fun and interesting lesson so let's get started!

Comments (14)
frankusu
4 years ago
Brian Voong
4 years ago
frankusu
4 years ago
Kritbovorn Taweeyossak
4 years ago
Brian Voong
4 years ago
ravibastola
4 years ago
seventhaxis
4 years ago
qi
4 years ago
Brian Voong
4 years ago
Mohamed Ibrahim Fetyany
4 years ago
Brian Voong
4 years ago
johnrm9
4 years ago
Brian Voong
4 years ago
GeeElle
5 years ago
李承諴
5 years ago
ghandirekt
5 years ago
e.tavares
5 years ago
eladshw17
5 years ago
ncytimothy
5 years ago
Brian Voong
5 years ago
ncytimothy
5 years ago
tsangaris
5 years ago
Brian Voong
5 years ago
tsangaris
5 years ago
Yunio
5 years ago
ravikanth.marri@gmail.com
5 years ago
Please contact admin@letsbuildthatapp.com if you have any issues.
HELP & SUPPORT