does flutter_rust_bridge::spawn need to be in async context #2364
-
And got a runtime error Then I made the function async: And it worked. Is there a reason that this is like it is? |
Beta Was this translation helpful? Give feedback.
Answered by
fzyzcjy
Oct 22, 2024
Replies: 1 comment
-
It seems to be a requirement of tokio instead of flutter_rust_bridge IIRC. e.g. google |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jbbjarnason
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems to be a requirement of tokio instead of flutter_rust_bridge IIRC. e.g. google
tokio spawn there is no reactor running