Skip to content
RED SAG Skills
hardStudy question · answer published in Swift interview questions, so no pointsswiftconcurrency

Global cache in Swift 6

After switching to the Swift 6 language mode, this line reports that the variable is not concurrency-safe. What is a proper fix?

var imageCache: [URL: Data] = [:]
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions