We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a03a3 commit 008c1dfCopy full SHA for 008c1df
src/config.rs
@@ -42,7 +42,9 @@ impl GlobalExecutorConfig {
42
self
43
}
44
45
- /// Use the specified value as the maximum number of threads.
+ /// Use the specified value as the maximum number of threads for async tasks.
46
+ /// To limit the maximum number of threads for blocking tasks, please use the
47
+ /// `BLOCKING_MAX_THREADS` environment variable.
48
pub fn with_max_threads(mut self, max_threads: usize) -> Self {
49
self.max_threads = Some(max_threads);
50
0 commit comments