UIApplication Background Task Behavior

I just read Quinn "The Eskimo!"'s great post on UIApplication Background Task Notes. A couple further points of clarification that would be useful:

  • Is it guaranteed that the expiration handler will only be invoked after beginBackgroundTask(expirationHandler:) returns?
  • Is it safe to invoke endBackgroundTask(_:) more than once for a given identifier?
UIApplication Background Task Behavior
 
 
Q