1 of 1 people found this helpful
1) Could didCompleteWithError be called on a task AFTER I call getTasksWithCompletionHandler but BEFORE the completionHandler is called?
Yes. The API makes no guarantees about the order in which delegate callbacks are made, so it’s possible to get
2) If this did happen, would the task be present in the
uploadTasksparameter of the completionHandler, or would it absent (as I would expect).
Honestly, I suspect that either is possible. When I last tackled this problem I wrote my code to not rely on this aspect of
-getTasksWithCompletionHandler:. I explained my logic in this thread.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"