Using PromiseKit for API call in Swift 4:
let apiCall = ApiManager.shared.fetchActors()
apiCall.then { actors -> Void in
self.dataSourceArray = actors
self.tableView.reloadData()
}.catch { error -> Void in
}
I get this error:
Cannot convert value of type '() -> Void' to expected argument type '() -> _'
How do I solve this issue?