<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFRunLoopRun()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFRunLoopRun"
  },
  "title" : "CFRunLoopRun()"
}
-->

# CFRunLoopRun()

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

```
func CFRunLoopRun()
```

## Discussion

The current thread’s run loop runs in the default mode (see [Default Run Loop Mode](/documentation/CoreFoundation/default-run-loop-mode)) until the run loop is stopped with [`CFRunLoopStop(_:)`](/documentation/CoreFoundation/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()`](/documentation/CoreFoundation/CFRunLoopRun()) from within any run loop callout and create nested run loop activations on the current thread’s call stack.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)
