---
title: "SCNetworkConnectionScheduleWithRunLoop(_:_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkconnectionschedulewithrunloop(_:_:_:)"
---

# SCNetworkConnectionScheduleWithRunLoop(_:_:_:)

Schedules the specified connection with the specified run loop.

## Declaration

```swift
func SCNetworkConnectionScheduleWithRunLoop(_ connection: SCNetworkConnection, _ runLoop: CFRunLoop, _ runLoopMode: CFString) -> Bool
```

## Parameters

- `connection`: The network connection to schedule.
- `runLoop`: The run loop with which to schedule the network connection.
- `runLoopMode`: The run loop mode.

## Return Value

Return Value TRUE if the connection is scheduled successfully; FALSE (use the SCError() function to retrieve the specific error).

## See Also

### Scheduling a Connection Reference on a Run Loop

- [SCNetworkConnectionUnscheduleFromRunLoop(_:_:_:)](systemconfiguration/scnetworkconnectionunschedulefromrunloop(_:_:_:).md)
