Module: Enumerable
- Included in:
- Hackeroo::Cursor
- Defined in:
- lib/hackeroo/core_ext/enumerable.rb
Instance Method Summary collapse
Instance Method Details
#threaded_map ⇒ Object
3 4 5 6 7 8 |
# File 'lib/hackeroo/core_ext/enumerable.rb', line 3 def threaded_map threads = map do |object| Thread.new { yield object } end threads.map(&:value) end |