Namespaces
executeOnMainThread
function executeOnMainThread(func: Function): any;Defined in: utils/index.d.ts:55
Checks if the current thread is the main thread. Directly calls the passed function if it is, or dispatches it to the main thread otherwise.
Parameters
| Parameter | Type | Description |
|---|---|---|
func | Function | The function to execute on the main thread. |
Returns
any
- Previous
- escapeRegexSymbols
- Next
- executeOnUIThread