<!--
{
  "documentType" : "article",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/cfrunloopruninmode_exit_codes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "CFRunLoopRunInMode Exit Codes"
}
-->

# CFRunLoopRunInMode Exit Codes

Return codes for `CFRunLoopRunInMode`, identifying the reason the run loop exited.

## Topics

### Constants

[`case finished`](/documentation/CoreFoundation/CFRunLoopRunResult/finished)

The running run loop mode has no sources or timers to process.

[`case stopped`](/documentation/CoreFoundation/CFRunLoopRunResult/stopped)

[`CFRunLoopStop(_:)`](/documentation/CoreFoundation/CFRunLoopStop(_:)) was called on the run loop.

[`case timedOut`](/documentation/CoreFoundation/CFRunLoopRunResult/timedOut)

The specified time interval for running the run loop has passed.

[`case handledSource`](/documentation/CoreFoundation/CFRunLoopRunResult/handledSource)

A source has been processed. This value is returned only if the run loop was told to run only until a source was processed.



---

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)