lib/mutant/actor.rb in mutant-0.7.5 vs lib/mutant/actor.rb in mutant-0.7.6
- old
+ new
@@ -38,24 +38,24 @@
super
end
end # Message
- # Bindin to others actors sender for simple RPC
+ # Binding to othersactors sender for simple RPC
class Binding
- include Concord.new(:actor, :other)
+ include Concord.new(:mailbox, :other)
# Send message and wait for reply
#
# @param [Symbol] type
#
# @return [Object]
#
# @api private
#
def call(type)
- other.call(Message.new(type, actor.sender))
- message = actor.receiver.call
+ other.call(Message.new(type, mailbox.sender))
+ message = mailbox.receiver.call
fail ProtocolError, "Expected #{type} but got #{message.type}" unless type.equal?(message.type)
message.payload
end
end # Binding