Profile Photo
Hello,   After updating to Xcode 10 I started having an issue where the app freezes when waiting for a semaphore. I tried changing to dispatch groups but the same thing happens: it works normally with Xcode 10 and freezes with Xcode 11 (both stable and beta).   The code is basically this:   result = false dispatch_semaphore_t semaphore =… (Show more)
in Concurrency
Profile Photo
let dispatchGroup = DispatchGroup()         for _ in 1...views.count { dispatchGroup.enter() }         DispatchQueue.main.asyncAfter(deadline: .now() + delay) {             for (index, view) in views.enumerated() {                 view.alpha = initialAlpha                 view.animate(animations: animations,                             … (Show more)
in Concurrency