Sha256: 5cea211cf4bca3f02ef0b56a39dc03e292ac072ade4e8ddf5ded0a2ad010936e
Contents?: true
Size: 713 Bytes
Versions: 1
Compression:
Stored size: 713 Bytes
Contents
# progress http://github.com/toy/in_threads ## DESCRIPTION: Easily execute ruby code in parallel ## SYNOPSIS: By default there is maximum of 10 simultaneous threads urls.in_threads.each do |url| url.save_to_disk end urls.in_threads.map do |url| url.fetch end numbers.in_threads(2).map do |number| … # whery long and complicated formula # using only 2 threads end You can use any Enumerable method but it is up to you if this is good urls.in_threads.any?(&:ok?) urls.in_threads.all?(&:ok?) ## REQUIREMENTS: ruby ))) ## INSTALL: sudo gem install in_threads ## Copyright Copyright (c) 2010 Ivan Kuchin. See LICENSE.txt for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
in_threads-0.0.4 | README.markdown |