Skip to content

Commit

Permalink
doc: complete ServerBuilder::workers docs
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Oct 29, 2023
1 parent 09548c9 commit 3cd5d8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions actix-server/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3cd5d8b

Please sign in to comment.