DispatchGroup: check how many “entered”
DispatchGroup: check how many “entered”
I'm using Swift 3 DispatchGroup to wait until multiple async operations are finished (according to this answer which works perfect and as expected.
DispatchGroup
Is there a way to check how many operations are entered already, like dispatchGroup.count or something like that?
dispatchGroup.count
1 Answer
1
NO, nothing. You need to balance your enter() and leave() by yourself without counting.
enter()
leave()
DispatchGroup
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.