0.0
The project is in a healthy, maintained state
evaluates some code on each line of the input in parallel
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

dorian-parallel

Run a Ruby snippet for each input line in parallel.

Install

gem install dorian-parallel

Also included in the aggregate gem:

gem install dorian

Usage

parallel [options] [file ...] "ruby code"

Run parallel -h for generated option details and parallel -v for the installed version.

Notes

  • Same model as each, but uses the parallel gem. Output order may vary.

Examples

Double numbers concurrently

printf '1\n2\n' | parallel "puts it.to_i * 2"