Skip to content
Browse files

Update async syntax in ring example

  • Loading branch information...
1 parent 74c1d56 commit 79ef14177f1a6e37bf4109420a45492626e137ef @tarcieri tarcieri committed Sep 8, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 examples/ring.rb
View
6 examples/ring.rb
@@ -14,7 +14,7 @@ def initialize(link)
end
def around(n)
- @link.around! n
+ @link.async.around n
end
end
@@ -32,7 +32,7 @@ def run(n)
raise ArgumentError, "I can't go around a negative number of times"
end
- around! n
+ async.around n
wait :done
end
@@ -41,7 +41,7 @@ def around(n)
if n.zero?
signal :done
else
- @node.around! n - 1
+ @node.async.around n - 1
end
end
end

0 comments on commit 79ef141

Please sign in to comment.
Something went wrong with that request. Please try again.