isMainThread

abstract val isMainThread: Boolean

True if the current thread is the main thread, false otherwise.