Sha256: 45e92865c9bd2c3ae7a9418e6eedc27f28db8cb1d40392586c9a5625da4d5c67

Contents?: true

Size: 162 Bytes

Versions: 3

Compression:

Stored size: 162 Bytes

Contents

module Enumerable

  def threaded_map
    threads = []
    each do |object|
      threads << Thread.new{yield object}
    end
    threads.map(&:value)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twitter-4.1.1 lib/twitter/core_ext/enumerable.rb
twitter-4.1.0 lib/twitter/core_ext/enumerable.rb
twitter-4.0.0 lib/twitter/core_ext/enumerable.rb