sjordine
7/25/2018 - 12:47 PM

Dispatch Queue with nested levels

DispatchQueue.global().async {
    let result = doSomethingAsynchronously()
    let transformedToAsyncFunction = transformToAsynchronous(result)
    DispatchQueue.global().async {
        let transformedValue = transformedToAsyncFunction()
         completionHandler(transformedValue)
    }
}