isMainThread

open override val isMainThread: Boolean

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