From a15c5f528af5f9a98fd6ec88e59d01224b6e88f0 Mon Sep 17 00:00:00 2001 From: kean Date: Sun, 7 Jul 2024 10:22:53 -0400 Subject: [PATCH] Adopt Sendable in ImageTask --- Sources/Nuke/ImageTask.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Nuke/ImageTask.swift b/Sources/Nuke/ImageTask.swift index e2dba4d3..7f91c077 100644 --- a/Sources/Nuke/ImageTask.swift +++ b/Sources/Nuke/ImageTask.swift @@ -283,7 +283,7 @@ public typealias AsyncImageTask = ImageTask // MARK: - ImageTask (Private) extension ImageTask { - private func makeStream(of closure: @escaping (Event) -> T?) -> AsyncStream { + private func makeStream(of closure: @Sendable @escaping (Event) -> T?) -> AsyncStream { AsyncStream { continuation in self.queue.async { guard let events = self._makeEventsSubject() else {