Contents

isMainThread

A Boolean value that indicates whether the receiver is the main thread.

Declaration

var isMainThread: Bool { get }

Discussion

true if the receiver is the main thread, otherwise false.

See Also

Working with the Main Thread