Изменения в новых версиях / Swift 6.2

// *** in version 6.2: ***
//the attribute takes the work off the
//caller's actor and onto the thread pool
@concurrent
func heavy(_ n: Intasync -> Int {
    (1...n).reduce(0, +)
}

let result = await heavy(1000)
print("result is \(result)")
//result is 500500