Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
lee committed May 16, 2009
1 parent 39c5e5d commit 194f084
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/actors/randomz.rb
Expand Up @@ -4,6 +4,11 @@ def run
send_wait(rand(10))
end

operation "/never/works"
def broken
fail :message => "I am hopelessly broken"
end

def send_wait(number)
wait = random_time
send_data :message => "remaining #{number} waiting #{wait}"
Expand Down

0 comments on commit 194f084

Please sign in to comment.