Skip to content

Commit

Permalink
Miri: Fix thread leak in WaitGroup doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 29, 2022
1 parent 175f4b3 commit cd37979
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crossbeam-utils/src/sync/wait_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use std::fmt;
///
/// // Block until all threads have finished their work.
/// wg.wait();
/// # std::thread::sleep(std::time::Duration::from_millis(500)); // wait for background threads closed: https://github.com/rust-lang/miri/issues/1371
/// ```
///
/// [`Barrier`]: std::sync::Barrier
Expand Down

0 comments on commit cd37979

Please sign in to comment.