DispatchQueue.global(qos: .background).async {
}
Do this if you ever get a warning or error saying that you shouldn't be doing this action while not on the main thread.
DispatchQueue.main.async { [unowned self] in
self.tableView.reloadData()
}
DispatchQueue.global(qos: .background).async {
}
Do this if you ever get a warning or error saying that you shouldn't be doing this action while not on the main thread.
DispatchQueue.main.async { [unowned self] in
self.tableView.reloadData()
}