class Mutest::Actor::Mailbox

Unbound mailbox

Public Class Methods

new() click to toggle source

New mailbox

@return [Mailbox]

Calls superclass method
# File lib/mutest/actor/mailbox.rb, line 11
def self.new
  mutex              = Mutex.new
  condition_variable = ConditionVariable.new
  messages           = []

  super(
    Receiver.new(condition_variable, mutex, messages),
    Sender.new(condition_variable, mutex, messages)
  )
end

Public Instance Methods

bind(other) click to toggle source

Binding for RPC to other actors

@param [Actor::Sender] other

@return [Binding]

# File lib/mutest/actor/mailbox.rb, line 27
def bind(other)
  Binding.new(self, other)
end