I know creation of queues and able to execute single task but how can i execute multiple tasks in parallel.
Concurrent Queue ---->
let concurrentQueue = DispatchQueue(label: "com.some.concurrentQueue", attributes: .concurrent)
concurrentQueue.async {
//executable code
}
BackgroundQueue without priorities default--->
DispatchQueue.global().async {
//executable code
}
Backgroundqueue with priorities---->
DispatchQueue.global(qos: .userInitiated).async { //.userInteractive .background .default .unspecified
//executable code
}
Getting back to the main Queue ---->
DispatchQueue.main.async {
//executable code
}
All are asynchronous but how can i execute multiple methods at a time how should i code in swift.