-
Is the There would be two possible scenarios:
Which one is correct? If I get to understand I will contribute to the docs right away. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have forgotten the details (written more than a year ago and later may be refactored). So there is a simple way to find out: Just print the thread id in wherever you get confused, then we can know whether it is the same thread! |
Beta Was this translation helpful? Give feedback.
-
Odd lines are |
Beta Was this translation helpful? Give feedback.
I did an experiment:
Odd lines are
i32
functions. Even lines areSyncReturn<i32>
functions. Since there are 4 threads in the flutter_rust_bridge pool, obviouslyThreadId(5)
is the main Dart thread. SoSyncReturn<T>
functions ARE using the main Dart thread after all :)