Skip to content

Commit

Permalink
more simple examples
Browse files Browse the repository at this point in the history
  • Loading branch information
danielribeiro committed Dec 16, 2010
1 parent 22b80ff commit f4ee553
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 61,704 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
/nbproject/ /nbproject/
pkg pkg
lib/logs


## EMACS ## EMACS
*~ *~
Expand Down
4 changes: 2 additions & 2 deletions lib/basic_example.rb
Expand Up @@ -13,7 +13,7 @@ def onReceive(message)
end end
end end


actor = Akka::UntypedActor.actorOf(PingActor).start() actor = Akka::UntypedActor.actorOf(PingActor).start
actor.sendOneWay "hello actor world" actor.sendOneWay "hello actor world"
sleep 1 sleep 1
Akka::ActorRegistry.shutdownAll() Akka::ActorRegistry.shutdownAll
10 changes: 10 additions & 0 deletions lib/fixxed_basic_example.rb
@@ -0,0 +1,10 @@
require 'akka'
class PingActor < Actors::Base
def onReceive(message)
puts "!!! Acted on: #{message}"
end
end
actor = PingActor.spawn
actor.sendOneWay "hello actor world"
sleep 1
Akka::ActorRegistry.shutdownAll
192 changes: 0 additions & 192 deletions lib/logs/akka.log

This file was deleted.

61,179 changes: 0 additions & 61,179 deletions lib/logs/akka.log.2010-12-15-13

This file was deleted.

82 changes: 0 additions & 82 deletions lib/logs/akka.log.2010-12-15-18

This file was deleted.

21 changes: 0 additions & 21 deletions lib/logs/akka.log.2010-12-15-21

This file was deleted.

0 comments on commit f4ee553

Please sign in to comment.