Class: Mfp::OutgoingMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/mfp/outgoing_message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(frame) ⇒ OutgoingMessage

Returns a new instance of OutgoingMessage.



7
8
9
10
# File 'lib/mfp/outgoing_message.rb', line 7

def initialize(frame)
  @frame = frame
  @result = Async::Queue.new
end

Instance Attribute Details

#frameObject (readonly)

Returns the value of attribute frame.



5
6
7
# File 'lib/mfp/outgoing_message.rb', line 5

def frame
  @frame
end

Instance Method Details

#complete(error) ⇒ Object



13
# File 'lib/mfp/outgoing_message.rb', line 13

def complete(error) = @result.enqueue(error)

#waitObject



12
# File 'lib/mfp/outgoing_message.rb', line 12

def wait = @result.dequeue