Dispatch groups are a bit more advanced, but I hope the previous episodes have shown that they can be incredibly useful to manage complex tasks. The DispatchSemaphore
class is another more advanced member of Apple's concurrency library. While there are some similarities between dispatch semaphores and dispatch groups, dispatch semaphores are more powerful and more versatile.
Subscribe to Cocoacasts Plus to watch this episode.
Mastering Grand Central Dispatch
Controlling Access With Dispatch Semaphores
by Bart Jacobs in Swift
Swift 4
Xcode 10
iOS 12
Mastering Grand Central Dispatch
-
1 What Is Grand Central Dispatch
07:40
-
2 Working With Dispatch Queues
10:22
-
4 Main and Global Dispatch Queues
09:04
-
10 Applying Quality of Service Classes
12:30
-
12 Simplifying With Dispatch Groups
08:42
-
13 Controlling Access With Dispatch Semaphores
14:50