|
|
@@ -44,7 +44,7 @@ public enum KingfisherError: Error {
|
|
|
// MARK: Error Reason Types
|
|
|
|
|
|
/// Represents the error reasons during the networking request phase.
|
|
|
- public enum RequestErrorReason {
|
|
|
+ public enum RequestErrorReason: Sendable {
|
|
|
|
|
|
/// The request is empty.
|
|
|
///
|
|
|
@@ -69,7 +69,7 @@ public enum KingfisherError: Error {
|
|
|
}
|
|
|
|
|
|
/// Represents the error reason during networking response phase.
|
|
|
- public enum ResponseErrorReason {
|
|
|
+ public enum ResponseErrorReason: Sendable {
|
|
|
|
|
|
/// The response is not a valid URL response.
|
|
|
///
|
|
|
@@ -126,7 +126,7 @@ public enum KingfisherError: Error {
|
|
|
}
|
|
|
|
|
|
/// Represents the error reason during Kingfisher caching.
|
|
|
- public enum CacheErrorReason {
|
|
|
+ public enum CacheErrorReason: @unchecked Sendable {
|
|
|
|
|
|
/// Cannot create a file enumerator for a certain disk URL.
|
|
|
///
|
|
|
@@ -237,9 +237,8 @@ public enum KingfisherError: Error {
|
|
|
case diskStorageIsNotReady(cacheURL: URL)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/// Represents the error reason during image processing phase.
|
|
|
- public enum ProcessorErrorReason {
|
|
|
+ public enum ProcessorErrorReason: Sendable {
|
|
|
/// Image processing has failed, and there is no valid output image generated by the processor.
|
|
|
///
|
|
|
/// - Parameters:
|
|
|
@@ -251,7 +250,7 @@ public enum KingfisherError: Error {
|
|
|
}
|
|
|
|
|
|
/// Represents the error reason during image setting in a view related class.
|
|
|
- public enum ImageSettingErrorReason {
|
|
|
+ public enum ImageSettingErrorReason: Sendable {
|
|
|
|
|
|
/// The input resource is empty or `nil`.
|
|
|
///
|