Type Property


Returns the run loop for the current thread.


class var current: RunLoop { get }

Return Value

The NSRunLoop object for the current thread.


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: RunLoop.Mode?

The receiver's current input mode.

func limitDate(forMode: RunLoop.Mode) -> Date?

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() -> CFRunLoop

Returns the receiver's underlying CFRunLoop object.