review changes
This commit is contained in:
@@ -4,9 +4,6 @@ func dispatch<T>(
|
||||
block: @escaping () throws -> T
|
||||
) {
|
||||
DispatchQueue.global(qos: qos).async {
|
||||
let result = Result { try block() }
|
||||
DispatchQueue.main.async {
|
||||
completion(result)
|
||||
}
|
||||
completion(Result { try block() })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user