Ver Fonte

Cache can be sendable

onevcat há 1 ano atrás
pai
commit
cd9f37f521
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Sources/Cache/ImageCache.swift

+ 1 - 1
Sources/Cache/ImageCache.swift

@@ -151,7 +151,7 @@ public enum ImageCacheResult {
 /// > While a default image cache object will be used if you prefer the extension methods of Kingfisher, you can create
 /// > While a default image cache object will be used if you prefer the extension methods of Kingfisher, you can create
 /// your own cache object and configure its storages according to your needs. This class also provides an interface for
 /// your own cache object and configure its storages according to your needs. This class also provides an interface for
 /// configuring the memory and disk storage.
 /// configuring the memory and disk storage.
-open class ImageCache {
+open class ImageCache: @unchecked Sendable {
 
 
     // MARK: Singleton
     // MARK: Singleton
     /// The default ``ImageCache`` object.
     /// The default ``ImageCache`` object.