mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
docs: tokio::main macro is also supported on rt (#3243)
Fixes: #3144 Refs: #2225
This commit is contained in:
@@ -53,6 +53,8 @@ use proc_macro::TokenStream;
|
||||
/// The `worker_threads` option configures the number of worker threads, and
|
||||
/// defaults to the number of cpus on the system. This is the default flavor.
|
||||
///
|
||||
/// Note: The multi-threaded runtime requires the `rt-multi-thread` feature flag.
|
||||
///
|
||||
/// # Current thread runtime
|
||||
///
|
||||
/// To use the single-threaded runtime known as the `current_thread` runtime,
|
||||
|
||||
Reference in New Issue
Block a user