Returns the CFRunLoop object for the current thread.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
func CFRunLoopGetCurrent() -> CFRun Loop!
Return Value
Current thread’s run loop. Ownership follows the The Get Rule.
Discussion
Each thread has exactly one run loop associated with it.