Skip to content

Commit

Permalink
Removed redundant line ThreadPool::terminate() docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
arindas committed Oct 17, 2021
1 parent 091725b commit be12cf8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/threadpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,7 @@ where
///
/// let mut thread_pool = ThreadPool::<u8, u8>::new(2);
/// thread_pool.terminate();
/// ```
/// This method is used in the Drop implementation, where the value
/// is moved instead of a mutable borrow. It is encourage to rely
/// on the Drop mechanism instead for idiomatic cleanup.
/// ```
pub fn terminate(&mut self) -> Result<(), ThreadPoolError> {
// Ensure that all threads complete their jobs and
// complete pending done notifications if any.
Expand Down

0 comments on commit be12cf8

Please sign in to comment.