Instance Methodswift-service-discovery 1.4.0ServiceDiscovery
subscribe(to:onNext:onComplete:)
InMemoryServiceDiscovery.swift:88@discardableResult @preconcurrency func subscribe(to service: Service, onNext nextResultHandler: @escaping (Result<[Instance], Error>) -> Void, onComplete completionHandler: @escaping (CompletionReason) -> Void = { _ in }) -> CancellationToken