SwiftstructHealthTopicsCore
GenericRequestEvaluator
struct HealthTopicsCore.GenericRequestEvaluator
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 11
- field
let _stopCallCount: os.OSAllocatedUnfairLock<Int> - field
let handler: @Sendable (Result<A.TopicRequest.Response, Error>, Bool) -> () - field
let request: A - field
let startHandler: (@Sendable (A, @Sendable (Result<A.TopicRequest.Response, Error>, Bool) -> ()) -> ())? - field
let stopHandler: (@Sendable () -> ())? - func
provide(result: Result<A.Response, Error>, finished: Bool) -> () - func
start() -> () - func
stop() -> () - init
init(request: A, handler: @Sendable (Result<A.Response, Error>, Bool) -> (), startHandler: (@Sendable (A, @Sendable (Result<A.Response, Error>, Bool) -> ()) -> ())?, stopHandler: (@Sendable () -> ())?) -> HealthTopicsCore.GenericRequestEvaluator<A> - typealias
typealias Request = A - var
var stopCallCount: Int { get }
Header
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) }