Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NativeScript/NativeScript
/ isMainThread
Function
isMainThread
packages/core/utils/mainthread-helper.ios.ts:5–7 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3
}
4
5
export
function
isMainThread(): boolean {
6
return
NSThread.isMainThread;
7
}
8
9
export
function
dispatchToUIThread(func: () => void) {
10
const
runloop = CFRunLoopGetMain();
Callers
1
executeOnMainThread
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected