swift-is it necessary to continue when leaving a dispatchgroup?

Yes, it is absolutely necessary to call continue, since you want to avoid continuing the execution of the body of your loop.

Calling DispatchGroup.leave does not exit the current scope, you need to call continue to achieve that. leave only affects whatever you are doing with the DispatchGroup – so consequent notify or wait calls.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top