Created
May 28, 2021 10:36
-
-
Save yogeshbh/c485cae13ca60a1f8bed4dfb7aa07e62 to your computer and use it in GitHub Desktop.
oncallback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func downloadComplate(downloader: ImageDownloader, data: Data?, error: Error?) { | |
let signpostID = OSSignpostID (log: SignpostLog.networking, object:downloader ) | |
var dataSize: Int64 = 0 | |
if let data = data , error == nil { | |
bookImage?.image = UIImage(data: data) | |
book?.image = UIImage(data: data) | |
dataSize = Int64(data.count) | |
} | |
os_signpost(.end, log: SignpostLog.networking, name: "Background Image", signpostID: signpostID, "Status:%{public}@,Size:%llu", "Completed", dataSize) | |
self.runningDownloader = nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment