Why is it necessary to call dispatch_group_leave the same number of times as dispatch_group_enter?
问题 In my dispatch_group code, I use dispatch_group_wait to time out a group of web service calls. Question, it seems like I would need to count how many times dispatch_group_enter is called and then call the same number of remaining dispatch_group_leave should some web service calls never return causing an unequal number of dispatch_group_enter vs dispatch_group_leave. Why? I have seen crashes happening if I don't do this in the case when timeout happens and triggers dispatch_group_wait. The