Sha256: a2f67c15767f91e982ff97143f6996148a39321803bf87543d49812ff79533ed

Contents?: true

Size: 343 Bytes

Versions: 121

Compression:

Stored size: 343 Bytes

Contents

require "#{File.dirname(__FILE__)}/../dataflow"
include Dataflow

Ping = Actor.new {
  3.times {
    case receive
    when "Ping"
      puts "Ping"
      Pong.send "Pong"
    end
  }
}

Pong = Actor.new {
  3.times {
    case receive
    when "Pong"
      puts "Pong"
      Ping.send "Ping"
    end
  }
}

Ping.send "Ping"
Ping.join
Pong.join

Version data entries

121 entries across 121 versions & 3 rubygems

Version Path
engineyard-serverside-1.5.28.pre.timestamps lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre12 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre11 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre10 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre9 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre8 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre7 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre6 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre5 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre4 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre3 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre2 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.28.pre1 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.27 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.27.pre4 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.27.pre3 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.27.pre2 lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.27.pre lib/vendor/dataflow/examples/messages.rb
engineyard-serverside-1.5.26 lib/vendor/dataflow/examples/messages.rb