Skip to content

Commit

Permalink
Adopt Sendable in ImageTask
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Jul 7, 2024
1 parent 8352731 commit a15c5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Nuke/ImageTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public typealias AsyncImageTask = ImageTask
// MARK: - ImageTask (Private)

extension ImageTask {
private func makeStream<T>(of closure: @escaping (Event) -> T?) -> AsyncStream<T> {
private func makeStream<T>(of closure: @Sendable @escaping (Event) -> T?) -> AsyncStream<T> {
AsyncStream { continuation in
self.queue.async {
guard let events = self._makeEventsSubject() else {
Expand Down

0 comments on commit a15c5f5

Please sign in to comment.