1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 21:51:06 +01:00

doc: complete ServerBuilder::workers docs

This commit is contained in:
Rob Ede 2023-10-29 18:47:38 +00:00
parent 09548c96b0
commit 3cd5d8b07a
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -72,13 +72,14 @@ impl ServerBuilder {
/// Sets number of workers to start.
///
/// `num` must be greater than 0.
///
/// Note that the factory
/// See [`bind()`](Self::bind()) for more details on how worker count affects the number of
/// server factory instantiations.
///
/// The default worker count is the determined by [`std::thread::available_parallelism()`]. See
/// its documentation to determine what behavior you should expect when server is run.
///
/// `num` must be greater than 0.
///
/// # Panics
///
/// Panics if `num` is 0.