From 1b7547aff586697257f687049c9c4c29c2a7dec6 Mon Sep 17 00:00:00 2001 From: kean Date: Sun, 18 Aug 2024 13:46:16 -0400 Subject: [PATCH] Rename imageTaskUpdatePriorityCalled --- Sources/Nuke/ImageTask.swift | 2 +- Sources/Nuke/Pipeline/ImagePipeline.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }