multiple isolates in flutter
ggslayer opened this issue · comments
ggslayer commented
Hi, when I create a new isolate in flutter, call rust api in the new isolate, the error report: "flutter_rust_bridge has not been initialized. Did you forget to call await RustLib.init();
?".
So, I have two question:
- does RustLib.init must be called in every isolate?
- if multiple isolate, the rust lib will exists multiple instance or one instance shared by multiple isolate?
thank you
fzyzcjy commented
Hi, does this doc work for you: https://cjycode.com/flutter_rust_bridge/guides/miscellaneous/isolates