docs: remove max_threads mentions in tokio-macros (#3038)

This commit is contained in:
nickelc
2020-10-24 22:34:56 +02:00
committed by GitHub
parent a95378a850
commit c30ce1f65c
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ fn parse_knobs(
return Err(syn::Error::new_spanned(namevalue, msg));
}
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));
}
}
-4
View File
@@ -231,10 +231,6 @@ pub fn test(args: TokenStream, item: TokenStream) -> TokenStream {
/// Marks async function to be executed by runtime, suitable to test environment
///
/// ## Options:
///
/// - `max_threads=n` - Sets max threads to `n`.
///
/// ## Usage
///
/// ```no_run