9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement
ts
function isMainThread(): boolean;

Defined in: utils/mainthread-helper.d.ts:10

Returns

boolean

Boolean value indicating whether the current thread is the main thread

Previous
isFunction