-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot implement custom async runtime #1858
Comments
Hi! Thanks for opening your first issue here! 😄 |
Hmm then that looks like a bug! Feel free to PR to fix it (export needed variables), or alternatively I will fix it in the (hopefully within a week) next batch. P.S. #1848 is also working on async runtime |
Could I instead change the |
Sure, you are free to use whatever executor you like. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue. |
Describe the bug
According to the docs, in v2 you should be able to implement your own
BaseAsyncRuntime
. However, I created a struct that implements it, but it is never called. I think I need to declare a new executor, but there appears to be no way to access all the types I need to do that because many of them are not exported. How can I provide a custom async runtime? I need to manage it's lifecycle outside of the context of this project for background work when the dart VM is not active.Thank you!
Steps to reproduce
Hint: A simple way to reproduce is to clone and modify the https://github.com/fzyzcjy/flutter_rust_bridge/tree/master/frb_example/dart_minimal example package according to your needs.
Logs
Expected behavior
No response
Generated binding code
No response
OS
No response
Version of
flutter_rust_bridge_codegen
2.0
Flutter info
No response
Version of
clang++
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: