Suppose you have multiple threads running. Each thread is doing one task. You want to get notified either on the mainThread OR another thread, when all the task-threads are completed.
The simplest solution to such a problem is a DispatchGroup.
When using a DispatchGroup, for each request, you ente...