Skip to content
RED SAGSkills
hard20 pts · first answer countsswiftconcurrency

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