Sha256: 64367cff4aac090cb8043cacde2cf9232048e1d23acfa12d260ff06277799c0c
Contents?: true
Size: 314 Bytes
Versions: 2
Compression:
Stored size: 314 Bytes
Contents
$:.unshift("../lib") require 'ara' class MySynchronizedActor < Actor def receive(message) puts "Actor #{self} receive message : #{message}" sleep rand(10) reply "Thanks @ #{Time.now}!" end end mySynchromizedActor = Actors.actor_of(MySynchronizedActor).start puts mySynchromizedActor << "Hello !"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ara-0.0.2 | examples/sync_actor.rb |
ara-0.0.1 | examples/sync_actor.rb |