Skip to content

Commit 008c1df

Browse files
committed
config: update documentation
Fixes #4 Signed-off-by: Marc-Antoine Perennou <[email protected]>
1 parent d6a03a3 commit 008c1df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/config.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ impl GlobalExecutorConfig {
4242
self
4343
}
4444

45-
/// Use the specified value as the maximum number of threads.
45+
/// 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.
4648
pub fn with_max_threads(mut self, max_threads: usize) -> Self {
4749
self.max_threads = Some(max_threads);
4850
self

0 commit comments

Comments
 (0)