Mikey Ward

Dispatch Groups

Mikey Ward | Nov 16, 2018

We demonstrate using Dispatch Groups to rendezvous multiple simultaneous asynchronous tasks so that you can process all of their results at once, after the last one finishes.

For the More Curious...

DispatchGroup - Dispatch | Apple Developer Documentation
Good intro to threading if you need a primer
BNR Guide to Swift
BNR Guide to iOS
iOS & Swift Courses

Subscribers Only

Transcripts are for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Subscribers Only

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Need Help?

If you get stuck, try starting a discussion with Big Nerd Ranch experts in the community tab.

Related Screencasts

Explore other screencasts related to this topic.

Drawing Custom Controls

6 minutes

Sometimes your app design calls for a control design that isn't provided in UIKit. In this video, we draw one from scratch!

Handling Async Results

5 minutes

Throwing errors and completion handlers have pros and cons, and can’t be used in all situations. Here we examine some strategies for writing elegant async error-handling code with closures and associated-value enumerations.

Protocol Oriented Dependency Injection

8 minutes

Tight coupling between view controllers in your application can lead to difficult maintenance as you add and remove features. This video will explore how using Protocols can make our Dependency Injection more loosely coupled. This improves the flexibility of the code and makes our application easier to change.

Finding and Fixing Memory Issues

7 minutes

Incorrectly managing memory in our applications can result in hard to find bugs and possible crashes. In this video, we will explore the Memory Graph debugging tool in Xcode and how you can use it to find and fix strong reference cycles in closures.

Using Container Views to Manage Complex Layouts

7 minutes

When you have a complex view controller view, sometimes it is helpful to break up the view into manageable chunks. In this video we will show how you can use container views to simplify the construction of certain layouts. After this video you will know when and how to use these container views in your applications.

Create a Welcome Message on Initial Launch

8 minutes

Performing tasks when an application is first launched is a common practice to give users important information about the application. In this video, we will discuss one technique for implementing first launch logic, as well as how to quickly test this code.