mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 04:18:52 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			504 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			504 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
/**
 | 
						|
 * 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;
 | 
						|
 | 
						|
/**
 | 
						|
 * Dispatches the passed function for execution on the UI thread
 | 
						|
 * @param func The function to execute on the UI thread.
 | 
						|
 */
 | 
						|
export function dispatchToUIThread(func: Function);
 |