-
Hi, I would like to thank you first for this great package. I've been playing with Flutter Rust Bridge for a while. First of all, I got curious about how many threads are generated when Flutter Rust Bridge is used. I did some test for myself which Also, the docs say that I can even throw away the thread pool. How can I do that? I couldn't find it in the docs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are welcome!
https://cjycode.com/flutter_rust_bridge/feature/handler.html The default one https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/frb_rust/src/handler.rs uses https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/frb_rust/src/thread.rs thus 4 threads. |
Beta Was this translation helpful? Give feedback.
You are welcome!
https://cjycode.com/flutter_rust_bridge/feature/handler.html
You can create custom handler, and thus customize #threads (or even use your own implementation etc)
The default one https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/frb_rust/src/handler.rs uses https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/frb_rust/src/thread.rs thus 4 threads.