I’m sending two async calls on the identical time and need to carry out one other job when getting consequence from each APIs…
One of many APIs is definitely used to add the video which might take time … the duty might full even after the app comes from the background or perhaps reopen after being terminated by the consumer (I reupload the video if the final consequence was not profitable)…
I need to carry out some motion when each APIs obtained profitable outcomes…
beforehand I used to be utilizing DispatchGroup()
however I did not discover it a a lot efficient answer for the reason that app obtained crashed if u name group.go away()
one additional time after calling group.enter()
.Consumer can verify for the depend
earlier than leaving the group with following line self.group.debugDescription.elements(separatedBy: ",").filter({$0.comprises("depend")}).first!.elements(separatedBy:CharacterSet.decimalDigits.inverted).filter({Int($0) != nil})
however that is overkill for such a small job thats why i’m looking for some higher answer for such duties…