Contents

CFNetServiceMonitorUnscheduleFromRunLoop(_:_:_:)

Unschedules a CFNetServiceMonitor from a run loop.

Declaration

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(_:).

Special Considerations

This function is thread safe.

See Also

Network Services