Skip to content

Is the SyncReturn<T> function executed on the main thread? #1028

Answered by temeddix
temeddix asked this question in Q&A
Discussion options

You must be logged in to vote

I did an experiment:

Odd lines are i32 functions. Even lines are SyncReturn<i32> functions. Since there are 4 threads in the flutter_rust_bridge pool, obviously ThreadId(5) is the main Dart thread. So SyncReturn<T> functions ARE using the main Dart thread after all :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by temeddix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants