I need to send multiple tasks to Grand Central Dispatch to run. Some tasks will finish first, while some will finish last.
How do I know all my tasks in Grand Central Dispatch finished?
Should I use a counter to record the number of tasks finished? Any smarter method?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…