Sha256: 2b464768a7328bf8ff268eca3dee0bd1e46e68e05a68bd2c8d5285adaeab71d9
Contents?: true
Size: 203 Bytes
Versions: 24
Compression:
Stored size: 203 Bytes
Contents
module Enumerable # Simple parallel map using Celluloid::Futures def pmap(&block) futures = map { |elem| Celluloid::Future.new(elem, &block) } futures.map { |future| future.value } end end
Version data entries
24 entries across 24 versions & 3 rubygems