Class: Mutant::Actor::Sender
- Inherits:
-
Object
- Object
- Mutant::Actor::Sender
- Includes:
- Adamantium::Flat
- Defined in:
- lib/mutant/actor/sender.rb
Overview
Sender for messages to acting thread
Instance Method Summary collapse
-
#call(message) ⇒ self
private
Send a message to actor.
Instance Method Details
#call(message) ⇒ self
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.
Send a message to actor
15 16 17 18 19 20 21 22 |
# File 'lib/mutant/actor/sender.rb', line 15 def call() mutex.synchronize do << condition_variable.signal end self end |