iOS Swift - Concurrency
What is wrong with this Swift code snippet?
await withTaskGroup(of: Int.self) { group in
group.addTask { 5 }
group.addTask { 10 }
var total = 0
for value in group {
total += value
}
print(total)
}