fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.

Home Page:https://fzyzcjy.github.io/flutter_rust_bridge/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to custom the executor thread count in v2

Alps2 opened this issue · comments

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
For example, replace the 4 thread count by writing a new FLUTTER_RUST_BRIDGE_HANDLER in v1

Describe alternatives you've considered
Can you please provide a parameter to assign the default thread count of executor.

Additional context

Just customize your handler https://cjycode.com/flutter_rust_bridge/guides/custom/rust#customize-handler

This is the default code:

macro_rules! frb_generated_default_handler {

And you can copy-paste-modify it in your project. If frb detects the FLUTTER_RUST_BRIDGE_HANDLER variable, it will stop using the default template automatically.