<!--
{
  "availability" : [
    "iOS: 2.0.0 - 27.0.0",
    "iPadOS: 2.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.4.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/CFNetServiceMonitorUnscheduleFromRunLoop(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "CFNetwork"
    ],
    "preciseIdentifier" : "c:@F@CFNetServiceMonitorUnscheduleFromRunLoop"
  },
  "title" : "CFNetServiceMonitorUnscheduleFromRunLoop(_:_:_:)"
}
-->

# CFNetServiceMonitorUnscheduleFromRunLoop(_:_:_:)

Unschedules a CFNetServiceMonitor from a run loop.

```
func CFNetServiceMonitorUnscheduleFromRunLoop(_ monitor: CFNetServiceMonitor, _ runLoop: CFRunLoop, _ runLoopMode: CFString)
```

## Parameters

`monitor`

The CFNetServiceMonitor that is to be unscheduled; cannot be `NULL`.

`runLoop`

The run loop; cannot be `NULL`.

`runLoopMode`

The mode from which the monitor is to be unscheduled; cannot be `NULL`.

## Discussion

Unschedules the specified monitor from the specified run loop and mode. Call this function to shut down a monitor that is running asynchronously.

To change a monitor so that it cannot be scheduled and so that its callback will never be called, call [`CFNetServiceMonitorInvalidate(_:)`](/documentation/CFNetwork/CFNetServiceMonitorInvalidate(_:)).

### Special Considerations

This function is thread safe.

---

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)