Are completion handler closures always running in the background thread?
问题 Completion handler closures are common in iOS development, such as dataTask(with:completionHandler:) in the URLSession class. The UI engine is managed by the main thread, the API calls by URLSession are run under the background thread and must be dispatched to the main thread if a UI update is needed in the handler. Question 1 : Do all completion handler closures from the iOS framework run in the background thread? Question 1.1 : Do all escaping closures, for example, created by developers,