isMainThread
isMainThread
Whether the JavaScript execution is happening on the application’s main thread (aka. UI thread). In most cases, Paw makes the JavaScript execution happen in the background to keep the application responsive at all times. But in rare cases, when macOS requires a synchronous result, the execution can happen on the main thread (e.g. user copies a dynamic value, drag-and-drop). In such cases, it’s recommended to avoid doing heavy computations.
(Read-only)