(
no_progress_bar: bool,
start_time: SystemTime,
output_separator: String,
total_words: Arc<AtomicUsize>,
file_save_path: Option<String>,
show_header: bool,
rx: Receiver<St
| 143 | } |
| 144 | |
| 145 | pub fn printer_thread( |
| 146 | no_progress_bar: bool, |
| 147 | start_time: SystemTime, |
| 148 | output_separator: String, |
| 149 | total_words: Arc<AtomicUsize>, |
| 150 | file_save_path: Option<String>, |
| 151 | show_header: bool, |
| 152 | rx: Receiver<String>, |
| 153 | ) -> Vec<JoinHandle<()>> { |
| 154 | let printer_handle = thread::spawn(move || { |
| 155 | printer_blocking( |
| 156 | no_progress_bar, |
| 157 | start_time, |
| 158 | output_separator, |
| 159 | total_words, |
| 160 | file_save_path, |
| 161 | show_header, |
| 162 | rx, |
| 163 | ); |
| 164 | }); |
| 165 | |
| 166 | vec![printer_handle] |
| 167 | } |
| 168 | |
| 169 | #[cfg(test)] |
| 170 | mod tests { |
no test coverage detected