Handle App Refresh | raywenderlich.com

Your background task is going to hit this API and download an updated list from the API, so that when a user returns they can see the latest music very quickly. In this episode you will write the logic to handle this refresh.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/21242372-background-tasks-in-ios/lessons/3

lastOperation?.completionBlock {
task.setTaskCompleted(success: !(lastOperation?.isCancelled ?? false))
}
Generates an error of passing an argument where none is needed.

Argument passed to call that takes no arguments