Run commands in parallel using Rust's async Tokio framework
Run commands in parallel with Rust's Tokio framework
rust-parallel$ rust-parallel -j 4 -- 'sleep 1; echo task1' 'sleep 2; echo task2' 'sleep 1; echo task3'$ cat commands.txt | rust-parallel$ echo -e 'file1.txt\nfile2.txt\nfile3.txt' | rust-parallel -j 2 'process_file {}'