Video: Meet async/await in Swift
With Swift concurrency, functions, initializers, read-only properties, and for-loops can all be marked async
. Property getters can also throw.
func fetchThumbnails() await throws -> [UIImage] {
}
extension UIImage {