Permalink
Browse files

Merge pull request #44 from akostrikov/patch-1

Hello! You nuked call Future as a function but haven`t removed it from e...
  • Loading branch information...
2 parents 62f2192 + 66e720e commit 523e2c3db3eaff2f960e056222ecb478cffb5810 @tarcieri tarcieri committed Apr 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/simple_pmap.rb
@@ -6,7 +6,7 @@
module Enumerable
# Simple parallel map using Celluloid::Futures
def pmap(&block)
- futures = map { |elem| Celluloid::Future(elem, &block) }
+ futures = map { |elem| Celluloid::Future.new(elem, &block) }
futures.map { |future| future.value }
end
end

0 comments on commit 523e2c3

Please sign in to comment.