My question is how to correctly translate this function in Swift 3 because i noticed there is a lot of documentation about dispatch_async
but there isn't anything about dispatch_group_async
dispatch_group_async(group, dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0)) { [unowned self] in
Try this:
let group = DispatchGroup()
DispatchQueue.global(qos: .userInitiated)
.async(group:group) { [unowned self] in
// code
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With