chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::ChefFS::Parallelizer::ParallelEnumerable#initialize
options: :ordered [true|false] - whether the output should stay in the same order as the input (even though it may not actually be processed in that order). Default: true :stop_on_exception [true|false] - if true, when an exception occurs in either input or output, we wait for any outstanding processing to complete, but will not process any new inputs. Default: false :main_thread_processing [true|false] - whether the main thread pulling on each() is allowed to process inputs. Default: true NOTE: If you set this to false, parallelizer.kill will stop each() in its tracks, so you need to know for sure that won't happen.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/chef_fs/parallelizer/parallel_enumerable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--ChefFS--Parallelizer--ParallelEnumerable-initialize-for-pr
# Commit to gitgit add lib/chef/chef_fs/parallelizer/parallel_enumerable.rbgit commit -m "better docs for Chef::ChefFS::Parallelizer::ParallelEnumerable#initialize"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--ChefFS--Parallelizer--ParallelEnumerable-initialize-for-pr
hub pull-request
# Celebrate!