I make three
async
requests together all of which I need to wait for before moving forward.I have read following to synchronize async requests
Waiting until two async blocks are executed before starting another block
dispatch_group_async(group, queue, ^ {
...
});
runs task async. But my task itself is async
and it calls callback handlers.
So, when will my task be declared done in the context of dispatch_group_async
?
Would it be called done when my callbacks have been executed?
If you could provide sequence of events that will happen till the point my task will be declared done will be very helpful