removeService(_:completionHandler:)
Removes a service from the service group.
Declaration
func removeService(_ service: HMService, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func removeService(_ service: HMService) async throwsParameters
- service:
The service to remove.
- completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.