You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If do pub async fn init_app, see error logs like thread 'tokio-runtime-worker' panicked at src/api/minimal.rs:3:1:, showing it is executed, and it executed by tokio (async runtime)
If do pub fn init_app, see error logs like thread '<unnamed>' panicked at src/api/minimal.rs:3:1:, showing it is also executed
fzyzcjy
added
the
awaiting
Waiting for responses, PR, further discussions, upstream release, etc
label
Jan 3, 2025
Describe the bug
Looking at the docs https://cjycode.com/flutter_rust_bridge/guides/how-to/init#use-frbinit , it is not clear when an
init
function will be called. I assume it is called byawait RustLib.init()
. Indeed this code does throw on the dart side withRustLib.init()
.But making the function async, does not result in a thrown exception on the dart side.
I would expect
await RustLib.init()
to throw here.The text was updated successfully, but these errors were encountered: