---
title: "results(for:)"
framework: healthkit
role: symbol
role_heading: Instance Method
path: "healthkit/hkanchoredobjectquerydescriptor/results(for:)"
---

# results(for:)

Initiates a long-running query that returns its results using an asynchronous sequence.

## Declaration

```swift
func results(for healthStore: HKHealthStore) -> HKAnchoredObjectQueryDescriptor<Sample>.Results
```

## Parameters

- `healthStore`: The access point for HealthKit data.

## See Also

### Running Queries

- [result(for:)](healthkit/hkanchoredobjectquerydescriptor/result(for:).md)
- [HKAnchoredObjectQueryDescriptor.Result](healthkit/hkanchoredobjectquerydescriptor/result.md)
- [HKAnchoredObjectQueryDescriptor.Results](healthkit/hkanchoredobjectquerydescriptor/results.md)
