---
title: HKAsyncQuery
framework: healthkit
role: symbol
role_heading: Protocol
path: healthkit/hkasyncquery
---

# HKAsyncQuery

A protocol that defines an asynchronous method for running queries.

## Declaration

```swift
protocol HKAsyncQuery
```

## Mentioned in

Running Queries with Swift Concurrency

## Topics

### Running Queries

- [Output](healthkit/hkasyncquery/output.md)
- [result(for:)](healthkit/hkasyncquery/result(for:).md)

## Relationships

### Conforming Types

- [HKActivitySummaryQueryDescriptor](healthkit/hkactivitysummaryquerydescriptor.md)
- [HKAnchoredObjectQueryDescriptor](healthkit/hkanchoredobjectquerydescriptor.md)
- [HKSampleQueryDescriptor](healthkit/hksamplequerydescriptor.md)
- [HKSourceQueryDescriptor](healthkit/hksourcequerydescriptor.md)
- [HKStatisticsCollectionQueryDescriptor](healthkit/hkstatisticscollectionquerydescriptor.md)
- [HKStatisticsQueryDescriptor](healthkit/hkstatisticsquerydescriptor.md)
- [HKUserAnnotatedMedicationQueryDescriptor](healthkit/hkuserannotatedmedicationquerydescriptor.md)
- [HKVerifiableClinicalRecordQueryDescriptor](healthkit/hkverifiableclinicalrecordquerydescriptor.md)
- [HKWorkoutEffortRelationshipQueryDescriptor](healthkit/hkworkouteffortrelationshipquerydescriptor.md)

## See Also

### Swift concurrency support

- [Running Queries with Swift Concurrency](healthkit/running-queries-with-swift-concurrency.md)
- [HKAsyncSequenceQuery](healthkit/hkasyncsequencequery.md)
- [HKSamplePredicate](healthkit/hksamplepredicate.md)
