Is it possible to call a dart function synchronously? #2506
Unanswered
EugenePisotsky
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi, this is not yet possible, because rust->dart uses Dart's "port" mechanism which is async. However, if the Rust code runs on the main thread that dart is on, then theoretically it may be possible to call dart synchronously (not yet supported though). Feel free to PR for it! Alternatively, I may work on it but may not be soon, since this requires some amount of work. Btw, curious the use case of taffy in Dart - it seems Flutter already has layout system |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
I'm trying to integrate
taffy
library and it needs a function that measures the size of the text (something like this). I want to pass a dart function, but it needs to be synchronous because otherwise I guess I won't be able to use it with taffy. Is it impossible right now?Beta Was this translation helpful? Give feedback.
All reactions