mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge branch 'master'
This commit is contained in:
10
nativescript-core/utils/mainthread-helper.d.ts
vendored
Normal file
10
nativescript-core/utils/mainthread-helper.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Dispatches the passed function for execution on the main thread
|
||||
* @param func The function to execute on the main thread.
|
||||
*/
|
||||
export function dispatchToMainThread(func: Function);
|
||||
|
||||
/**
|
||||
* @returns Boolean value indicating whether the current thread is the main thread
|
||||
*/
|
||||
export function isMainThread(): boolean
|
||||
Reference in New Issue
Block a user