Class: Mutant::Actor::Mailbox
- Inherits:
-
Object
- Object
- Mutant::Actor::Mailbox
- Includes:
- Adamantium::Flat
- Defined in:
- lib/mutant/actor/mailbox.rb
Overview
Unbound mailbox
Class Method Summary collapse
-
.new ⇒ Mailbox
private
Return new mailbox.
Instance Method Summary collapse
-
#bind(other) ⇒ Binding
private
Return binding for RPC to other actors.
Class Method Details
.new ⇒ Mailbox
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return new mailbox
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mutant/actor/mailbox.rb', line 13 def self.new mutex = Mutex.new condition_variable = ConditionVariable.new = [] super( Receiver.new(condition_variable, mutex, ), Sender.new(condition_variable, mutex, ) ) end |