UNPKG

504 BTypeScriptView Raw
1/**
2 * Dispatches the passed function for execution on the main thread
3 * @param func The function to execute on the main thread.
4 */
5export function dispatchToMainThread(func: Function);
6
7/**
8 * @returns Boolean value indicating whether the current thread is the main thread
9 */
10export function isMainThread(): boolean;
11
12/**
13 * Dispatches the passed function for execution on the UI thread
14 * @param func The function to execute on the UI thread.
15 */
16export function dispatchToUIThread(func: Function);