Execute a block using a given activity object.
- iOS 10.0+
- macOS 10.12+
- UIKit for Mac 13.0+Beta
- tvOS 10.0+
- watchOS 3.0+
An activity object.
You can alternatively pass one of the global activity constants, such as OS_ACTIVITY_NONE or OS_ACTIVITY_CURRENT.
The block to be executed within the context of the given activity.
Creating and Accessing Activities
Ends the specified activity on the current thread.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software