Browse Source

task manager

Thomas 1 year ago
parent
commit
67d799c014
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/runn.rs

+ 1 - 0
src/runn.rs

@@ -42,6 +42,7 @@ impl IndProgress {
 
 // type BoxFuture<T> = Pin<Box<dyn Future<Output = T> + Send>>;
 
+#[derive(Clone, Debug)]
 pub struct TaskManager<R> {
     tasks: Arc<Mutex<HashMap<usize, task::JoinHandle<anyhow::Result<()>>>>>,
     results_channels: Arc<Mutex<HashMap<usize, Receiver<R>>>>,