Method: ConcurrentSHM::Channel::Buffered::Fixed#recv

Defined in:
lib/concurrent-shm/channel.rb

#recvString

Receive a fixed-width packet over the channel. Blocks if the buffer is empty.

Returns:

  • (String)

    the packet



332
333
334
335
336
# File 'lib/concurrent-shm/channel.rb', line 332

def recv
  do_recv do |i|
    @data[i].read
  end
end