---
title: CFRunLoopRun()
framework: corefoundation
role: symbol
role_heading: Function
path: corefoundation/cfrunlooprun()
---

# CFRunLoopRun()

Runs the current thread’s CFRunLoop object in its default mode indefinitely.

## Declaration

```swift
func CFRunLoopRun()
```

## Discussion

Discussion The current thread’s run loop runs in the default mode (see Default Run Loop Mode) until the run loop is stopped with CFRunLoopStop(_:) or all the sources and timers are removed from the default run loop mode. Run loops can be run recursively. You can call CFRunLoopRun() from within any run loop callout and create nested run loop activations on the current thread’s call stack.

## See Also

### Starting and Stopping a Run Loop

- [CFRunLoopRunInMode(_:_:_:)](corefoundation/cfrunloopruninmode(_:_:_:).md)
- [CFRunLoopWakeUp(_:)](corefoundation/cfrunloopwakeup(_:).md)
- [CFRunLoopStop(_:)](corefoundation/cfrunloopstop(_:).md)
- [CFRunLoopIsWaiting(_:)](corefoundation/cfrunloopiswaiting(_:).md)
