@preconcurrency func mapInstance<DerivedInstance>(_ transformer: @escaping (Instance) throws -> DerivedInstance) -> MapInstanceServiceDiscovery<Self, DerivedInstance> where DerivedInstance : Hashable, DerivedInstance : Sendable
Creates a new ServiceDiscovery
implementation based on this one, transforming the instances according to the derived function.
@preconcurrency func mapService<ComputedService>(serviceType: ComputedService.Type = ComputedService.self, _ transformer: @escaping (ComputedService) throws -> Service) -> MapServiceServiceDiscovery<Self, ComputedService> where ComputedService : Hashable, ComputedService : Sendable
Creates a new ServiceDiscovery
implementation based on this one, transforming the services according to the derived function.