SwiftstructHealthTopicsCore

struct HealthTopicsCore.GenericRequestEvaluator

Structure

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

Members 11

  1. fieldlet _stopCallCount: os.OSAllocatedUnfairLock<Int>
  2. fieldlet handler: @Sendable (Result<A.TopicRequest.Response, Error>, Bool) -> ()
  3. fieldlet request: A
  4. fieldlet startHandler: (@Sendable (A, @Sendable (Result<A.TopicRequest.Response, Error>, Bool) -> ()) -> ())?
  5. fieldlet stopHandler: (@Sendable () -> ())?
  6. funcprovide(result: Result<A.Response, Error>, finished: Bool) -> ()
  7. funcstart() -> ()
  8. funcstop() -> ()
  9. initinit(request: A, handler: @Sendable (Result<A.Response, Error>, Bool) -> (), startHandler: (@Sendable (A, @Sendable (Result<A.Response, Error>, Bool) -> ()) -> ())?, stopHandler: (@Sendable () -> ())?) -> HealthTopicsCore.GenericRequestEvaluator<A>
  10. typealiastypealias Request = A
  11. varvar stopCallCount: Int { get }
struct GenericRequestEvaluator<A> where A: HealthTopicsCore.TopicRequest {
    let request: A
    let handler: @Sendable (Swift.Result<A.Response, any Swift.Error>, Swift.Bool) -> ()
    let startHandler: (@Sendable (A, @Sendable (Swift.Result<A.Response, any Swift.Error>, Swift.Bool) -> ()) -> ())?
    let stopHandler: (@Sendable () -> ())?
    let _stopCallCount: os.OSAllocatedUnfairLock<Swift.Int>

    init(request: A, handler: @escaping @Sendable (Swift.Result<A.Response, any Swift.Error>, Swift.Bool) -> (), startHandler: (@Sendable (A, @Sendable (Swift.Result<A.Response, any Swift.Error>, Swift.Bool) -> ()) -> ())?, stopHandler: (@Sendable () -> ())?)

    var stopCallCount: Swift.Int {
        get
    }

    func stop()
    func start()
    func provide(result: Swift.Result<A.Response, any Swift.Error>, finished: Swift.Bool)
}