MCPcopy Create free account
hub / github.com/andreiverse/gorilla / printer_thread

Function printer_thread

src/threading.rs:145–167  ·  view source on GitHub ↗
(
    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

Source from the content-addressed store, hash-verified

143}
144
145pub 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)]
170mod tests {

Callers 1

mainFunction · 0.85

Calls 1

printer_blockingFunction · 0.85

Tested by

no test coverage detected