diff --git a/Sources/Nuke/ImageTask.swift b/Sources/Nuke/ImageTask.swift index 4e7b8485d..54c075f43 100644 --- a/Sources/Nuke/ImageTask.swift +++ b/Sources/Nuke/ImageTask.swift @@ -196,7 +196,7 @@ public final class ImageTask: Hashable, @unchecked Sendable { return !$0.isCancelling }) else { return } Task { @ImagePipelineActor in - pipeline?.imageTaskUpdatePriorityCalled(self, priority: newValue) + pipeline?.imageTask(self, didChangePriority: newValue) } } diff --git a/Sources/Nuke/Pipeline/ImagePipeline.swift b/Sources/Nuke/Pipeline/ImagePipeline.swift index 1cbf9afea..8bb528e96 100644 --- a/Sources/Nuke/Pipeline/ImagePipeline.swift +++ b/Sources/Nuke/Pipeline/ImagePipeline.swift @@ -259,7 +259,7 @@ public final class ImagePipeline { task._cancel() } - func imageTaskUpdatePriorityCalled(_ task: ImageTask, priority: ImageRequest.Priority) { + func imageTask(_ task: ImageTask, didChangePriority priority: ImageRequest.Priority) { self.tasks[task]?.setPriority(priority.taskPriority) }