Hashタプル

復習のつもりでついでに予習
7.6あたりの['name', 'rwiki' nil]は['name', 'rwiki', nil]ですね。

階乗サーバーのHashタプル版のnotifyはこんなの

require 'drb/drb'
require 'multiplenotify'

ts_uri = ARGV.shift || 'druby://localhost:12345'
DRb.start_service
$ts = DRbObject.new_with_uri(ts_uri)
mn = MultipleNotify.new($ts, nil, [{"request"=>"fact", "range"=>Range}, \
{"answer"=>"fact", "range"=>Range,  "fact"=>Integer}])

while true
  e,t = mn.pop, Time.now
  p t, e
end