2 ms·
> At some point invariably you'll discover issues with whether your code is running on the UI thread (and blocking the UI from updating while it runs, which is
by saurik 6y ago
> At some point invariably you'll discover issues with whether your code is running on the UI thread (and blocking the UI from updating while it runs, which is obviously bad), or running off the UI thread (and thus unable to update the UI elements)...
FWIW, this exact same issue comes
up in web development, only it is harder to spawn threads (in this case, web workers) to solve issues.
- g_p 6y agoVery true, and harder to really work around in JS, although I guess you can get a fair bit further along the "runway" before encountering this issue. With Android, you'll probably need to be using UI and non-UI thread work for anything that makes a network request or does more than a "hello world".