Last active
May 28, 2021 10:33
-
-
Save yogeshbh/90c5bba89dcb0b0005e5283e59dfe3ad to your computer and use it in GitHub Desktop.
OnRequest
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 startDownload() { | |
let downloader = ImageDownloader(delegate: self) | |
let signpostID = OSSignpostID (log: SignpostLog.networking, object:downloader ) | |
let address = unsafeBitCast(self, to: UInt.self) | |
let addressString = String(address) | |
os_signpost(.begin, log: SignpostLog.networking, name: "Background Image", signpostID: signpostID, "Image name:%{public}@,Caller:%{public}@", book?.title ?? "",addressString) | |
downloader.download(url: book?.imageLinks?.thumbnail ?? "") | |
self.runningDownloader = downloader | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment