Starts executing the provided query.
- iOS 8.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
HealthKit executes queries asynchronously on a background queue. Most queries automatically stop after they have finished executing. However, long-running queries—such as observer queries and some statistics collection queries—continue to execute in the background. To stop long-running queries, call the