mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export function dispatchToMainThread(func: () => void) {
|
||||
NSOperationQueue.mainQueue.addOperationWithBlock(func);
|
||||
NSOperationQueue.mainQueue.addOperationWithBlock(func);
|
||||
}
|
||||
|
||||
export function isMainThread(): Boolean {
|
||||
return NSThread.isMainThread;
|
||||
return NSThread.isMainThread;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user