---
title: getCFRunLoop()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/runloop/getcfrunloop()
---

# getCFRunLoop()

Returns the receiver’s underlying run loop object.

## Declaration

```swift
func getCFRunLoop() -> CFRunLoop
```

## Return Value

Return Value The receiver’s underlying CFRunLoop object.

## Discussion

Discussion You can use the returned run loop to configure the current run loop using Core Foundation function calls. For example, you might use this function to set up a run loop observer.

## See Also

### Accessing Run Loops and Modes

- [current](foundation/runloop/current.md)
- [currentMode](foundation/runloop/currentmode.md)
- [limitDate(forMode:)](foundation/runloop/limitdate(formode:).md)
- [main](foundation/runloop/main.md)
- [RunLoop.Mode](foundation/runloop/mode.md)
