How to specify the sarting thread count ?
How to specify the sarting thread count ?
you can use #[tokio::main(flavor = "multi_thread", worker_threads = 10)] to specify tokio runtime worker thread
or, you can use tokio + hyper to Build your own runtime configuration like this
https://github.com/salvo-rs/salvo/blob/9c4b63fb1c93f08d622787acf4c142dd74fce2f4/crates/core/src/server.rs#L55
@driftluo Thanks how to dynamicly specify the thread count ?
The worker_threads option configures the number of worker threads, and defaults to the number of cpus on the system.
If you want to change it during runtime, that is an unsupported feature