Type Property

current

Returns the run loop for the current thread.

Declaration

class var current: RunLoop { get }

Return Value

The NSRunLoop object for the current thread.

Discussion

If a run loop does not yet exist for the thread, one is created and returned.

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.

func getCFRunLoop()

Returns the receiver's underlying CFRunLoop object.