ThreadBase.isMainThread

Tests whether this thread is the main thread, i.e. the thread that initialized the runtime

class ThreadBase
final @property nothrow @nogc
bool
isMainThread
()

Return Value

Type: bool

true if the thread is the main thread

Meta