Replies: 1 comment
-
There should not be any race condition as Python async is still single threaded. On the other hand if those are happening from different threads, you need to schedule the update on the async event loop like we do in that example with auto update on file change. Specifically that line: current_event_loop.call_soon_threadsafe(update_ui) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a chance of a race condition if I update a state variable from two different async methods running simultaneously?
Beta Was this translation helpful? Give feedback.
All reactions