mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 07:33:28 +01:00
Using DispatchGroup leads to issue with invocation CoreStore success and failure closures. #270
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @matrosovDev on GitHub (May 4, 2019).
I faced with the issue that I never get code called group.leave() line. Looks like when we use DispatchGroup() waiting for all async calls but it does not call CoreStore success and failure blocks then.
@JohnEstropia commented on GitHub (May 6, 2019):
You are likely causing a deadlock as
perform(asynchronous:)should never be waited on. Try to useperform(synchronous:)instead.