@preconcurrency func lookupAndUnwrap<Service, Instance>(_ service: Service, deadline: DispatchTime? = nil, callback: @escaping (Result<[Instance], Error>) -> Void) where Service : Hashable, Service : Sendable, Instance : Hashable, Instance : Sendable
See lookup(_:deadline:callback:)
.
@discardableResult @preconcurrency func subscribeAndUnwrap<Service, Instance>(to service: Service, onNext nextResultHandler: @escaping (Result<[Instance], Error>) -> Void, onComplete completionHandler: @escaping (CompletionReason) -> Void = { _ in }) -> CancellationToken where Service : Hashable, Service : Sendable, Instance : Hashable, Instance : Sendable
See subscribe(to:onNext:onComplete:)
.