SwiftclassHealthKit

class HealthKit.ClientEvaluationExecutor

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 11

  1. deinitdeinit
  2. fieldlet executionQueue: OS_dispatch_queue+0x10
  3. fieldlet state: Synchronization.Mutex<HealthKit.ClientEvaluationExecutor.State>
  4. funcbatched<A, B, C where A: HealthKit.ListQueryDescriptorProtocol, B == A.ConfigurationKind, C: Decodable, C: Encodable, C == A.ModelKind>(queryDescriptor: A, batchSize: Int, relayProvider: HealthKit.HealthTypeQueryRelayProvider, batchHandler: @Sendable (Result<[C]?, Error>) -> ()) -> HealthKit.QueryToken
  5. funcbatched<A, B, C where A: HealthKit.ListQueryDescriptorProtocol, B == A.ConfigurationKind, C: NSObject, C: NSSecureCoding, C == A.ModelKind>(queryDescriptor: A, batchSize: Int, relayProvider: HealthKit.HealthTypeQueryRelayProvider, batchHandler: @Sendable (Result<[C]?, Error>) -> ()) -> HealthKit.QueryToken
  6. funcfindOne<A, B where A: HealthKit.QueryByIdQueryDescriptorProtocol, B == A.ModelKind>(queryDescriptor: A, relayProvider: HealthKit.HealthTypeQueryRelayProvider, eventHandler: @Sendable (Result<B, Error>) -> ()) -> HealthKit.QueryToken
  7. funcmutate<A, B, C where A: HealthKit.MutateQueryDescriptorProtocol, B == A.ConfigurationKind, C == A.ModelKind>(queryDescriptor: A, relayProvider: HealthKit.HealthTypeQueryRelayProvider, eventHandler: @Sendable (Result<[C], Error>) -> ()) -> HealthKit.QueryToken
  8. funcobserve<A, B where A: HealthKit.ObservationQueryDescriptorProtocol, B == A.ConfigurationKind>(queryDescriptor: A, relayProvider: HealthKit.HealthTypeQueryRelayProvider, eventHandler: @Sendable (Result<(), Error>) -> ()) -> HealthKit.QueryToken
  9. funcreceive(queryIdentifier: Foundation.UUID, response: HealthKit.EvaluationResponse<Foundation.Data>) -> ()
  10. funcwrite<A, B, C where A: HealthKit.WriteQueryDescriptorProtocol, B == A.ConfigurationKind, C == A.ModelKind>(queryDescriptor: A, relayProvider: HealthKit.HealthTypeQueryRelayProvider, eventHandler: @Sendable (Result<(), Error>) -> ()) -> HealthKit.QueryToken
  11. initHealthKit.ClientEvaluationExecutor.__allocating_init() -> HealthKit.ClientEvaluationExecutor
class ClientEvaluationExecutor {
    class WeakReference {
        weak var value: (any HealthKit.HealthTypeQueryRelay)?
    }
    struct State {
        var relays: [__C.HKHealthStoreIdentifier : HealthKit.ClientEvaluationExecutor.WeakReference]
        var requests: [Foundation.UUID : HealthKit.ClientEvaluationExecutor.Request]
    }
    struct Request {
        var relay: any HealthKit.HealthTypeQueryRelay
        var eventHandler: @Sendable (_: HealthKit.EvaluationResponse<Foundation.Data>) -> ()
    }
    let executionQueue: __C.OS_dispatch_queue
    let state: Synchronization.Mutex<HealthKit.ClientEvaluationExecutor.State>

    init()

    final func write<A, B, C>(queryDescriptor: A, relayProvider: HealthKit.HealthTypeQueryRelayProvider, eventHandler: @escaping @Sendable (_: Swift.Result<(), any Swift.Error>) -> ()) -> HealthKit.QueryToken where A: HealthKit.WriteQueryDescriptorProtocol, B == A.ConfigurationKind, C == A.ModelKind
    final func mutate<A, B, C>(queryDescriptor: A, relayProvider: HealthKit.HealthTypeQueryRelayProvider, eventHandler: @escaping @Sendable (_: Swift.Result<[C], any Swift.Error>) -> ()) -> HealthKit.QueryToken where A: HealthKit.MutateQueryDescriptorProtocol, B == A.ConfigurationKind, C == A.ModelKind
    final func batched<A, B, C>(queryDescriptor: A, batchSize: Swift.Int, relayProvider: HealthKit.HealthTypeQueryRelayProvider, batchHandler: @escaping @Sendable (_: Swift.Result<[C]?, any Swift.Error>) -> ()) -> HealthKit.QueryToken where A: HealthKit.ListQueryDescriptorProtocol, B == A.ConfigurationKind, C: Swift.Decodable, C: Swift.Encodable, C == A.ModelKind
    final func batched<A, B, C>(queryDescriptor: A, batchSize: Swift.Int, relayProvider: HealthKit.HealthTypeQueryRelayProvider, batchHandler: @escaping @Sendable (_: Swift.Result<[C]?, any Swift.Error>) -> ()) -> HealthKit.QueryToken where A: HealthKit.ListQueryDescriptorProtocol, B == A.ConfigurationKind, C: __C.NSObject, C: __C.NSSecureCoding, C == A.ModelKind
    final func findOne<A, B>(queryDescriptor: A, relayProvider: HealthKit.HealthTypeQueryRelayProvider, eventHandler: @escaping @Sendable (_: Swift.Result<B, any Swift.Error>) -> ()) -> HealthKit.QueryToken where A: HealthKit.QueryByIdQueryDescriptorProtocol, B == A.ModelKind
    final func observe<A, B>(queryDescriptor: A, relayProvider: HealthKit.HealthTypeQueryRelayProvider, eventHandler: @escaping @Sendable (_: Swift.Result<(), any Swift.Error>) -> ()) -> HealthKit.QueryToken where A: HealthKit.ObservationQueryDescriptorProtocol, B == A.ConfigurationKind
    final func receive(queryIdentifier: Foundation.UUID, response: HealthKit.EvaluationResponse<Foundation.Data>)

    deinit
}