I'm relatively new to programming in Swift for iOS. I was wondering if I do:
for n in 1...10 {
DispatchQueue.global(qos: .background).async {
sleep(5)
print("Hello world!")
}
}
Will this spawn 10 more background threads that will immedietly start working on my task?
Or will there ever only be 1 background thread and I will have just enqueued 10 things to do?