-
Notifications
You must be signed in to change notification settings - Fork 282
[Dart FFI] An example on how to use async callbacks between Dart and golang? #498
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
Comments
@jld3103 any updates on this? |
I wasn't able to get it working, but I think it is possible. I guess it was especially hard, because I was using a static Rust librarys |
Please let us know if you were able to get it working. Please keep this issue open till then. |
I'm not working on it, because I have no project that needs it, but still this issue should be kept open |
Finally an engineer from Google made this happen. Use Dart FFI and Go asynchronously. Thanks to @mraleph 🎉 |
That's really cool |
@ganeshrvel i have a library using golang (ffi and also protobuf for messages) and dart, also Hover :D if you want to take a look here it is |
I have been trying to setup a project which requires to make async calls from Flutter to golang native functions. There is an example for the same https://github.com/dart-lang/sdk/tree/master/samples/ffi/async but the code is vague to get started.
According to dart-lang/sdk#37022 they have recently added callback support from the native code to the dart code via Nativeport. But I am unable to get it working with golang.
It would be great if you guys could give us an example code which could get us started on async calls to native code and callbacks from go to dart.
I had appreciate any sort of help.
The text was updated successfully, but these errors were encountered: