Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complicated Go functions running in main thread might cause ANR (App-Not-Responding) issues #503

Open
jyyi1 opened this issue Feb 15, 2024 · 0 comments
Assignees
Labels
ux User interface and interaction problem

Comments

@jyyi1
Copy link
Contributor

jyyi1 commented Feb 15, 2024

We are calling complicated Go functions in the main thread, for example, "Connect" and "Disconnect". This might cause ANR issues if the operation takes too long to complete. Instead, we should start a background thread doing the complicated logic, and only updating the UI in the main thread.

One concrete example is mentioned in #502 .

@jyyi1 jyyi1 added the ux User interface and interaction problem label Feb 15, 2024
@jyyi1 jyyi1 self-assigned this Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux User interface and interaction problem
Projects
None yet
Development

No branches or pull requests

1 participant