Given the following definition:
func retrieveData(for id: Int, completion: @escaping (Record) -> ())
What is the difference between the following two calls to retrieveData?
first call:
let id: Int = 1
retrieveData(id: id) {
self.update(with: $0)
}
second call:
let id: Int = 1
retrieveData(id: id, completion: {
self.update(with: $0)
})