mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-03 00:00:05 +02:00
docs: remove max_threads mentions in tokio-macros (#3038)
This commit is contained in:
@@ -179,7 +179,7 @@ fn parse_knobs(
|
|||||||
return Err(syn::Error::new_spanned(namevalue, msg));
|
return Err(syn::Error::new_spanned(namevalue, msg));
|
||||||
}
|
}
|
||||||
name => {
|
name => {
|
||||||
let msg = format!("Unknown attribute {} is specified; expected one of: `flavor`, `worker_threads`, `max_threads`", name);
|
let msg = format!("Unknown attribute {} is specified; expected one of: `flavor`, `worker_threads`", name);
|
||||||
return Err(syn::Error::new_spanned(namevalue, msg));
|
return Err(syn::Error::new_spanned(namevalue, msg));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -231,10 +231,6 @@ pub fn test(args: TokenStream, item: TokenStream) -> TokenStream {
|
|||||||
|
|
||||||
/// Marks async function to be executed by runtime, suitable to test environment
|
/// Marks async function to be executed by runtime, suitable to test environment
|
||||||
///
|
///
|
||||||
/// ## Options:
|
|
||||||
///
|
|
||||||
/// - `max_threads=n` - Sets max threads to `n`.
|
|
||||||
///
|
|
||||||
/// ## Usage
|
/// ## Usage
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
|||||||
Reference in New Issue
Block a user