---
title: "SCNetworkReachabilitySetDispatchQueue(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkreachabilitysetdispatchqueue(_:_:)"
---

# SCNetworkReachabilitySetDispatchQueue(_:_:)

Schedules callbacks for the specified target on the specified dispatch queue.

## Declaration

```swift
func SCNetworkReachabilitySetDispatchQueue(_ target: SCNetworkReachability, _ queue: dispatch_queue_t?) -> Bool
```

## Parameters

- `target`: The address or name that is set up for asynchronous notifications. Must not be NULL.
- `queue`: The libdispatch queue on which the target should run. Pass NULL to disable notifications and release the queue.

## Return Value

Return Value TRUE if the target is scheduled successfully; otherwise, FALSE.

## See Also

### Preparing to Determine Reachability

- [SCNetworkReachabilityGetTypeID()](systemconfiguration/scnetworkreachabilitygettypeid().md)
- [SCNetworkReachabilitySetCallback(_:_:_:)](systemconfiguration/scnetworkreachabilitysetcallback(_:_:_:).md)
- [SCNetworkReachabilityScheduleWithRunLoop(_:_:_:)](systemconfiguration/scnetworkreachabilityschedulewithrunloop(_:_:_:).md)
- [SCNetworkReachabilityUnscheduleFromRunLoop(_:_:_:)](systemconfiguration/scnetworkreachabilityunschedulefromrunloop(_:_:_:).md)
