<!--
{
  "availability" : [
    "iOS: 2.0.0 - 27.0.0",
    "iPadOS: 2.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.2.0 - 27.0.0",
    "tvOS: 9.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CFNetwork",
  "identifier" : "/documentation/CFNetwork/CFNetServiceBrowserInvalidate(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "CFNetwork"
    ],
    "preciseIdentifier" : "c:@F@CFNetServiceBrowserInvalidate"
  },
  "title" : "CFNetServiceBrowserInvalidate(_:)"
}
-->

# CFNetServiceBrowserInvalidate(_:)

Invalidates an instance of a Network Service browser object.

```
func CFNetServiceBrowserInvalidate(_ browser: CFNetServiceBrowser)
```

## Parameters

`browser`

The CFNetServiceBrowser to invalidate, obtained by a previous call to [`CFNetServiceBrowserCreate(_:_:_:)`](/documentation/CFNetwork/CFNetServiceBrowserCreate(_:_:_:)).

## Discussion

This function invalidates the specified instance of a Network Service browser object. Any searches using the specified instance that are in progress when this function is called are stopped. An invalidated browser cannot be scheduled on a run loop and its callback function is never called.

### Special Considerations

This function is thread safe as long as another thread does not alter the same CFNetServiceBrowserRef at the same time.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)