The rules of threading #37
Unanswered
acoates-ms
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The architecture docs don't mention any rules about being allowed to block on any of the other threads. (https://reactnative.dev/architecture/threading-model#default-or-continuous-event-interruption)
It would be great to know what threads/operations are allowed to block on other threads. When is it ok to block on a synchronous call to JS. When is it ok to block on a call to the UI thread? Could someone implement a custom component that implements measure with a blocking call to the UI?
Which of these are just unadvisable, and which are likely to hit deadlocks?
Beta Was this translation helpful? Give feedback.
All reactions