我一起做三个
async
请求所有我需要等待前进前。at dispatch_group_async在执行异步任务时执行的任务与回调我已阅读下列同步异步请求
Waiting until two async blocks are executed before starting another block
dispatch_group_async(group, queue,^{
...
});
运行任务异步。但我的任务本身是async
,它调用回调处理程序。
所以,当将我的任务声明在dispatch_group_async
上下文中完成?
当我的回调被执行时它会被调用吗?
如果你能提供会发生,直到我的任务将宣告完成将是非常有益的一点是事件的序列
你的意思是“我的任务” - dispatch_group中的异步任务?调度dispatch_group上的任务的任务是什么? – Paulw11 2015-03-03 05:50:35
将在dispatch_group_async中执行的块将具有异步n/w请求 – GJain 2015-03-03 05:52:26
因此,一旦块将异步网络请求排队后,任务将继续释放dispatch_group,因此从dispatch_group的角度(以及执行'dispatch_group_notify'或'dispatch_group_wait'),即使网络活动仍在后台继续,任务也将完成。 – Paulw11 2015-03-03 05:55:15