mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-19 00:00:09 +02:00
doc: fix runtime::Builder example (#1841)
This commit is contained in:
@@ -25,8 +25,9 @@ use std::sync::Arc;
|
||||
/// use tokio::runtime::Builder;
|
||||
///
|
||||
/// fn main() {
|
||||
/// // build Runtime
|
||||
/// // build runtime
|
||||
/// let runtime = Builder::new()
|
||||
/// .threaded_scheduler()
|
||||
/// .num_threads(4)
|
||||
/// .thread_name("my-custom-name")
|
||||
/// .thread_stack_size(3 * 1024 * 1024)
|
||||
|
||||
Reference in New Issue
Block a user