MCPcopy 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
5export function isMainThread(): boolean {
6 return NSThread.isMainThread;
7}
8
9export function dispatchToUIThread(func: () => void) {
10 const runloop = CFRunLoopGetMain();

Callers 1

executeOnMainThreadFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected