---
title: "SCPreferencesSetDispatchQueue(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scpreferencessetdispatchqueue(_:_:)"
---

# SCPreferencesSetDispatchQueue(_:_:)

Schedules commit and apply notifications for the specified preferences session using the specified dispatch queue.

## Declaration

```swift
func SCPreferencesSetDispatchQueue(_ prefs: SCPreferences, _ queue: dispatch_queue_t?) -> Bool
```

## Parameters

- `prefs`: The preferences session.
- `queue`: The dispatch queue on which to run the callback function.

## Return Value

Return Value TRUE if the notifications are successfully scheduled; otherwise, FALSE.

## See Also

### Managing Notifications and Callbacks

- [SCPreferencesSetCallback(_:_:_:)](systemconfiguration/scpreferencessetcallback(_:_:_:).md)
- [SCPreferencesScheduleWithRunLoop(_:_:_:)](systemconfiguration/scpreferencesschedulewithrunloop(_:_:_:).md)
- [SCPreferencesUnscheduleFromRunLoop(_:_:_:)](systemconfiguration/scpreferencesunschedulefromrunloop(_:_:_:).md)
