(func: Function)
| 161 | } |
| 162 | |
| 163 | export function executeOnMainThread(func: Function) { |
| 164 | if (isMainThread()) { |
| 165 | return func(); |
| 166 | } else { |
| 167 | dispatchToMainThread(func); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | export function executeOnUIThread(func: Function) { |
| 172 | dispatchToUIThread(func); |
no test coverage detected