Instance Method

getCFRunLoop()

Returns the receiver's underlying CFRunLoop object.

Declaration

func getCFRunLoop() -> CFRunLoop

Return Value

The receiver's underlying CFRunLoop object.

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

var currentMode: RunLoopMode?

The receiver's current input mode.

func limitDate(forMode: RunLoopMode)

Performs one pass through the run loop in the specified mode and returns the date at which the next timer is scheduled to fire.

class var main: RunLoop

Returns the run loop of the main thread.