1
1
mirror of https://github.com/kean/Nuke.git synced 2024-11-28 12:04:01 +03:00

Update warnings

This commit is contained in:
kean 2024-08-17 17:59:47 -04:00
parent 351be3a42e
commit 836cf75ea8
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public final class ImagePipeline {
let rateLimiter: RateLimiter? let rateLimiter: RateLimiter?
let id = UUID() let id = UUID()
#warning("TODO: remove") // TODO: remove
nonisolated(unsafe) var onTaskStarted: ((ImageTask) -> Void)? // Debug purposes nonisolated(unsafe) var onTaskStarted: ((ImageTask) -> Void)? // Debug purposes
deinit { deinit {

View File

@ -143,7 +143,7 @@ public final class ImagePrefetcher {
return return
} }
#warning("use async/await") // TODO: use async/await
private func loadImage(task: PrefetchTask, finish: @escaping () -> Void) { private func loadImage(task: PrefetchTask, finish: @escaping () -> Void) {
task.imageTask = pipeline._loadImage(with: task.request, isDataTask: destination == .diskCache, progress: nil) { [weak self] _ in task.imageTask = pipeline._loadImage(with: task.request, isDataTask: destination == .diskCache, progress: nil) { [weak self] _ in
self?._remove(task) self?._remove(task)