Permalink
Browse files

Update future syntax in pool example

  • Loading branch information...
1 parent 71c504b commit 74c1d566abf224ffc0c065400a4c14fad90e8015 @tarcieri tarcieri committed Sep 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/pool.rb
View
@@ -32,7 +32,7 @@ def rehash(string, rounds)
end
futures = %w(i am the very model of a modern major general).map do |word|
- pool.future(:rehash, word, 1_000_000)
+ pool.future.rehash(word, 1_000_000)
end
p futures.map(&:value)

0 comments on commit 74c1d56

Please sign in to comment.