Sha256: e5ff52d0d82c25ebb4d35c426c86a1d35fa5929c41647fc32360aac7e9b275db

Contents?: true

Size: 146 Bytes

Versions: 17

Compression:

Stored size: 146 Bytes

Contents

module Enumerable

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

end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
twitter-5.1.1 lib/twitter/core_ext/enumerable.rb
twitter-5.1.0 lib/twitter/core_ext/enumerable.rb
twitter-5.0.1 lib/twitter/core_ext/enumerable.rb
twitter-5.0.0 lib/twitter/core_ext/enumerable.rb
twitter-5.0.0.rc.1 lib/twitter/core_ext/enumerable.rb
twitter-4.8.1 lib/twitter/core_ext/enumerable.rb
twitter-4.8.0 lib/twitter/core_ext/enumerable.rb
hackeroo-0.1.0 lib/hackeroo/core_ext/enumerable.rb
twitter-4.7.0 lib/twitter/core_ext/enumerable.rb
twitter-4.6.2 lib/twitter/core_ext/enumerable.rb
twitter-4.6.1 lib/twitter/core_ext/enumerable.rb
twitter-4.6.0 lib/twitter/core_ext/enumerable.rb
twitter-4.5.0 lib/twitter/core_ext/enumerable.rb
twitter-4.4.4 lib/twitter/core_ext/enumerable.rb
twitter-4.4.3 lib/twitter/core_ext/enumerable.rb
twitter-4.4.2 lib/twitter/core_ext/enumerable.rb
twitter-4.4.1 lib/twitter/core_ext/enumerable.rb