diff --git a/Sources/Nuke/ImageTask.swift b/Sources/Nuke/ImageTask.swift index 54c075f4..7e6609ad 100644 --- a/Sources/Nuke/ImageTask.swift +++ b/Sources/Nuke/ImageTask.swift @@ -13,6 +13,9 @@ import UIKit import AppKit #endif +// TODO: try to make another internal instance that is isolated +// - possible make `ImageTask` a struct? then no questions about retaining it + /// A task performed by the ``ImagePipeline``. /// /// The pipeline maintains a strong reference to the task until the request @@ -60,7 +63,7 @@ public final class ImageTask: Hashable, @unchecked Sendable { /// The current state of the task. @ImagePipelineActor - public var state: State = .running + public private(set) var state: State = .running /// The state of the image task. public enum State: Sendable {